[Olsr-dev] [PATCH 04/12] olsrd_httpinfo: remove unused variable
Ferry Huberts
(spam-protected)
Thu Jun 9 13:42:50 CEST 2011
From: Ferry Huberts <(spam-protected)>
src/olsrd_httpinfo.c:327:9: warning: variable ‘addr’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Ferry Huberts <(spam-protected)>
---
lib/httpinfo/src/olsrd_httpinfo.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/lib/httpinfo/src/olsrd_httpinfo.c b/lib/httpinfo/src/olsrd_httpinfo.c
index 0f05765..31018ba 100644
--- a/lib/httpinfo/src/olsrd_httpinfo.c
+++ b/lib/httpinfo/src/olsrd_httpinfo.c
@@ -324,7 +324,6 @@ parse_http_request(int fd, void *data __attribute__ ((unused)), unsigned int fla
struct sockaddr_in pin;
struct autobuf body_abuf = { 0, 0, NULL };
socklen_t addrlen;
- char *addr;
char header_buf[MAX_HTTPREQ_SIZE];
char req_type[11];
char filename[251];
@@ -367,8 +366,6 @@ parse_http_request(int fd, void *data __attribute__ ((unused)), unsigned int fla
goto close_connection;
}
- addr = inet_ntoa(pin.sin_addr);
-
memset(header_buf, 0, sizeof(header_buf));
while ((r = recv(client_socket, &header_buf[c], 1, 0)) > 0 && (c < sizeof(header_buf) - 1)) {
--
1.7.5.2
More information about the Olsr-dev
mailing list