From 6dfccad5645ef0b459d5904ce48550f72acf8d37 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 11 Jul 2006 21:23:44 +0000 Subject: r16960: Some warnings from host "opi" (This used to be commit 083ef11cc9be8f1299f233bde194173e092e2c3c) --- source3/torture/msgtest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/torture/msgtest.c') diff --git a/source3/torture/msgtest.c b/source3/torture/msgtest.c index 035214b3a9..557f4edf88 100644 --- a/source3/torture/msgtest.c +++ b/source3/torture/msgtest.c @@ -114,7 +114,7 @@ void pong_message(int msg_type, struct process_id src, void *buf, size_t len) size_t timelimit = n; size_t ping_count = 0; - printf("Sending pings for %d seconds\n", timelimit); + printf("Sending pings for %d seconds\n", (int)timelimit); while (timeval_elapsed(&tv) < timelimit) { if(message_send_pid(pid_to_procid(pid), MSG_PING, buf, 11, False)) ping_count++; @@ -127,14 +127,14 @@ void pong_message(int msg_type, struct process_id src, void *buf, size_t len) } printf("waiting for %d remaining replies (done %d)\n", - ping_count - pong_count, pong_count); + (int)(ping_count - pong_count), pong_count); while (timeval_elapsed(&tv) < 30 && pong_count < ping_count) { message_dispatch(); } if (ping_count != pong_count) { - fprintf(stderr, "ping test failed! received %d, sent %d\n", - pong_count, ping_count); + fprintf(stderr, "ping test failed! received %d, sent " + "%d\n", pong_count, (int)ping_count); } printf("ping rate of %.0f messages/sec\n", -- cgit