From 7b77c9fd6df437aec46e429ade5ddaa407a92f57 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 7 Jan 2012 22:52:12 +0100 Subject: [PATCH 134/139] 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) --- src/peers.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/peers.c b/src/peers.c index ac24e12..c6810e7 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); -- 1.7.2.3