* killed an unused variable
authorBernd Petrovitsch <bernd@firmix.at>
Sun, 9 Nov 2008 17:32:35 +0000 (18:32 +0100)
committerBernd Petrovitsch <bernd@firmix.at>
Sun, 9 Nov 2008 17:32:35 +0000 (18:32 +0100)
lib/httpinfo/src/olsrd_httpinfo.c

index d679a84..041dee2 100644 (file)
@@ -328,7 +328,6 @@ parse_http_request(int fd, void *data __attribute__((unused)), unsigned int flag
 {
   struct sockaddr_in pin;
   socklen_t addrlen;
-  char *addr;
   char req[MAX_HTTPREQ_SIZE];
   static char body[HTML_BUFSIZE];
   char req_type[11];
@@ -356,8 +355,6 @@ parse_http_request(int fd, void *data __attribute__((unused)), unsigned int flag
     goto close_connection;
   }
 
-  addr = inet_ntoa(pin.sin_addr);
-
   memset(req, 0, sizeof(req));
   memset(body, 0, sizeof(body));