From: Willy Tarreau Date: Sat, 7 Jan 2012 21:52:12 +0000 (+0100) Subject: CLEANUP: silence a warning when building on sparc X-Git-Tag: v1.5-dev8~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b77c9fd6df437aec46e429ade5ddaa407a92f57;p=thirdparty%2Fhaproxy.git CLEANUP: silence a warning when building on sparc On Solaris/sparc, getpid() returns pid_t which is not an int : src/peers.c: In function `peer_io_handler': src/peers.c:508: warning: int format, pid_t arg (arg 6) --- diff --git a/src/peers.c b/src/peers.c index ac24e12ba4..c6810e7040 100644 --- a/src/peers.c +++ b/src/peers.c @@ -502,7 +502,7 @@ switchstate: PEER_SESSION_PROTO_NAME " 1.0\n%s\n%s %d\n%s %lu %d\n", ps->peer->id, localpeer, - getpid(), + (int)getpid(), ps->table->table->id, ps->table->table->type, (int)ps->table->table->key_size);