Browse code

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

Maxim Sobolev authored on 08/12/2008 06:11:39
Showing 2 changed files
... ...
@@ -1104,7 +1104,7 @@ again:
1104 1104
 				   adding something to the changes array, close() and
1105 1105
 				   applying the changes */
1106 1106
 				LOG(L_INFO, "INFO: io_wait_loop_kqueue: kevent error on "
1107
-							"fd %d: %s [%ld]\n", h->kq_array[r].ident,
1107
+							"fd %ld: %s [%ld]\n", h->kq_array[r].ident,
1108 1108
 							strerror(h->kq_array[r].data),
1109 1109
 							(long)h->kq_array[r].data);
1110 1110
 			}else{ 
... ...
@@ -500,7 +500,7 @@ static int get_reply(struct binrpc_handle *handle,
500 500
 		/* we must read all datagram in one read call, otherwise unread part is truncated and lost. Read will block execution */
501 501
 		if (crt - hdr_end < tl) {
502 502
 			snprintf(binrpc_last_errs, sizeof(binrpc_last_errs)-1,
503
-				"get_reply: datagram truncated. Received: %d, Expected: %d.",
503
+				"get_reply: datagram truncated. Received: %ld, Expected: %d.",
504 504
 				crt-hdr_end, tl);
505 505
 			return FATAL_ERROR;		
506 506
 		}