diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-03-18 15:01:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-03-18 15:01:36 +0000 |
commit | fba2599680c32b15c20cd873ae444d6a3465e053 (patch) | |
tree | 67159c7c404747f0d3d0298ed770e8eeb0774b3c /src/common | |
parent | 05f5d778a23b0e5e6abd256e59af3046ae9d9efa (diff) | |
download | tor-fba2599680c32b15c20cd873ae444d6a3465e053.tar.gz tor-fba2599680c32b15c20cd873ae444d6a3465e053.zip |
r18923@catbus: nickm | 2008-03-18 11:01:22 -0400
Add missing typecasts to log message in set_max_file_descriptors to tell gcc everything is okay on windows. Fixes bug 630.
svn:r14099
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index c52d1ecd44..9b9afb50f7 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -781,7 +781,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out) log_warn(LD_CONFIG, "We do not support more than %lu file descriptors " "on Windows. Tried to raise to %lu.", - DEFAULT_MAX_CONNECTIONS, limit); + (unsigned long)DEFAULT_MAX_CONNECTIONS, (unsigned long)limit); return -1; } limit = DEFAULT_MAX_CONNECTIONS; @@ -789,7 +789,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out) if (limit > CYGWIN_MAX_CONNECTIONS) { log_warn(LD_CONFIG, "We do not support more than %lu file descriptors " "when using Cygwin. Tried to raise to %lu.", - CYGWIN_MAX_CONNECTIONS, limit); + (unsigned long)CYGWIN_MAX_CONNECTIONS, (unsigned long)limit); return -1; } limit = CYGWIN_MAX_CONNECTIONS; @@ -797,7 +797,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out) if (limit > IPHONE_MAX_CONNECTIONS) { log_warn(LD_CONFIG, "We do not support more than %lu file descriptors " "on iPhone. Tried to raise to %lu.", - IPHONE_MAX_CONNECTIONS, limit); + (unsigned long)IPHONE_MAX_CONNECTIONS, (unsigned long)limit); return -1; } limit = IPHONE_MAX_CONNECTIONS; |