Module: sip-router Branch: ser_core_cvs Commit: 8bed2c0e634a97254cd28a931e3e39771780dc17 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8bed2c0e...
Author: Maxim Sobolev sobomax@sippysoft.com Committer: Maxim Sobolev sobomax@sippysoft.com Date: Mon Dec 8 06:11:39 2008 +0000
Fix warnings on LP64 plarforms out there (all 64-bit amd64/emt64 unixes and linuxes) where sizeof(*void) != sizeof(int).
---
io_wait.h | 2 +- lib/binrpc/binrpc_api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/io_wait.h b/io_wait.h index 148aa34..0557c00 100644 --- a/io_wait.h +++ b/io_wait.h @@ -1104,7 +1104,7 @@ again: adding something to the changes array, close() and applying the changes */ LOG(L_INFO, "INFO: io_wait_loop_kqueue: kevent error on " - "fd %d: %s [%ld]\n", h->kq_array[r].ident, + "fd %ld: %s [%ld]\n", h->kq_array[r].ident, strerror(h->kq_array[r].data), (long)h->kq_array[r].data); }else{ diff --git a/lib/binrpc/binrpc_api.c b/lib/binrpc/binrpc_api.c index e843238..faf82d1 100644 --- a/lib/binrpc/binrpc_api.c +++ b/lib/binrpc/binrpc_api.c @@ -500,7 +500,7 @@ static int get_reply(struct binrpc_handle *handle, /* we must read all datagram in one read call, otherwise unread part is truncated and lost. Read will block execution */ if (crt - hdr_end < tl) { snprintf(binrpc_last_errs, sizeof(binrpc_last_errs)-1, - "get_reply: datagram truncated. Received: %d, Expected: %d.", + "get_reply: datagram truncated. Received: %ld, Expected: %d.", crt-hdr_end, tl); return FATAL_ERROR; }