Fix warnings on LP64 plarforms out there (all 64-bit amd64/emt64 unixes
authorMaxim Sobolev <sobomax@sippysoft.com>
Mon, 8 Dec 2008 06:11:39 +0000 (06:11 +0000)
committerMaxim Sobolev <sobomax@sippysoft.com>
Mon, 8 Dec 2008 06:11:39 +0000 (06:11 +0000)
and linuxes) where sizeof(*void) != sizeof(int).

io_wait.h
lib/binrpc/binrpc_api.c

index 148aa34..0557c00 100644 (file)
--- 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{ 
index e843238..faf82d1 100644 (file)
@@ -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;             
                }