[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r14100: Backport: Add missing typecasts to log message in set_max_fi (in tor/branches/tor-0_2_0-patches: . src/common)
Author: nickm
Date: 2008-03-18 11:01:40 -0400 (Tue, 18 Mar 2008)
New Revision: 14100
Modified:
tor/branches/tor-0_2_0-patches/
tor/branches/tor-0_2_0-patches/src/common/compat.c
Log:
r18924@catbus: nickm | 2008-03-18 11:01:32 -0400
Backport: Add missing typecasts to log message in set_max_file_descriptors to tell gcc everything is okay on windows. Fixes bug 630.
Property changes on: tor/branches/tor-0_2_0-patches
___________________________________________________________________
svk:merge ticket from /tor/020 [r18924] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/branches/tor-0_2_0-patches/src/common/compat.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/common/compat.c 2008-03-18 15:01:36 UTC (rev 14099)
+++ tor/branches/tor-0_2_0-patches/src/common/compat.c 2008-03-18 15:01:40 UTC (rev 14100)
@@ -781,7 +781,7 @@
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 @@
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 @@
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;