diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-08-17 21:46:34 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-08-17 21:46:34 +0000 |
commit | 1f244d394354c8093ecf5a0029ae06578f74ad91 (patch) | |
tree | 95ee3a24d04d9e7632540f44cb536845f32f7a72 /src/or | |
parent | f8b3927e076465808bd31e0e06712fb155ccf125 (diff) | |
download | tor-1f244d394354c8093ecf5a0029ae06578f74ad91.tar.gz tor-1f244d394354c8093ecf5a0029ae06578f74ad91.zip |
r14639@catbus: nickm | 2007-08-17 17:45:28 -0400
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled.
svn:r11157
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/connection.c | 2 | ||||
-rw-r--r-- | src/or/eventdns.c | 4 | ||||
-rw-r--r-- | src/or/eventdns_tor.h | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index dbcc14c9b0..b67cd1e2cc 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -705,6 +705,8 @@ create_unix_sockaddr(const char *listenaddress, char **readable_address) static struct sockaddr * create_unix_sockaddr(const char *listenaddress, char **readable_address) { + (void)listenaddress; + (void)readable_address; log_fn(LOG_ERR, LD_BUG, "Unix domain sockets not supported, yet we tried to create one."); assert(0); diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 1fb458118e..5074bcd541 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -122,9 +122,7 @@ typedef int socklen_t; #include <stdio.h> #endif -/* XXXX020 These are for debugging possible memory leaks. */ -#include "util.h" -#include "compat.h" +/*XXXX020 for debugging possible memory leaks. */ #define malloc(x) tor_malloc(x) #define realloc(x,y) tor_realloc((x),(y)) #define free(x) tor_free(x) diff --git a/src/or/eventdns_tor.h b/src/or/eventdns_tor.h index 03807065fc..d8377246da 100644 --- a/src/or/eventdns_tor.h +++ b/src/or/eventdns_tor.h @@ -17,3 +17,7 @@ typedef unsigned char u_char; #define WIN32 #endif +/* XXXX020 These are for debugging possible memory leaks. */ +#include "util.h" +#include "compat.h" + |