Jelajahi Sumber

Fix warnings on LP64 plarforms out there (all 64-bit amd64/emt64 unixes
and linuxes) where sizeof(*void) != sizeof(int).

Maxim Sobolev 17 tahun lalu
induk
melakukan
8bed2c0e63
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      io_wait.h
  2. 1 1
      lib/binrpc/binrpc_api.c

+ 1 - 1
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{ 

+ 1 - 1
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;		
 		}