summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-31 21:11:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:27 -0500
commite7952e9c14218d0c8c13973056ab8762876e5a79 (patch)
tree8ac9dde3279137b31f603922565414c28aafcf56 /source3/torture
parent49001a5b1b07e9a24e5f7efa0dfd880772bdb435 (diff)
downloadsamba-e7952e9c14218d0c8c13973056ab8762876e5a79.tar.gz
samba-e7952e9c14218d0c8c13973056ab8762876e5a79.tar.bz2
samba-e7952e9c14218d0c8c13973056ab8762876e5a79.zip
r17347: Some C++ warnings -- 271 left
(This used to be commit 641dac4f85c0e00484d90726bea1a4cb58c8235c)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/msgtest.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/torture/msgtest.c b/source3/torture/msgtest.c
index 557f4edf88..0c7b57f80c 100644
--- a/source3/torture/msgtest.c
+++ b/source3/torture/msgtest.c
@@ -66,7 +66,8 @@ void pong_message(int msg_type, struct process_id src, void *buf, size_t len)
message_init();
if (argc != 3) {
- fprintf(stderr, "%s: Usage - %s pid count\n", argv[0], argv[0]);
+ fprintf(stderr, "%s: Usage - %s pid count\n", argv[0],
+ argv[0]);
exit(1);
}
@@ -115,11 +116,11 @@ void pong_message(int msg_type, struct process_id src, void *buf, size_t len)
size_t ping_count = 0;
printf("Sending pings for %d seconds\n", (int)timelimit);
- while (timeval_elapsed(&tv) < timelimit) {
+ while (timeval_elapsed(&tv) < timelimit) {
if(message_send_pid(pid_to_procid(pid), MSG_PING,
- buf, 11, False)) ping_count++;
+ buf, 11, False)) ping_count++;
if(message_send_pid(pid_to_procid(pid), MSG_PING,
- NULL, 0, False)) ping_count++;
+ NULL, 0, False)) ping_count++;
while (ping_count > pong_count + 20) {
message_dispatch();
@@ -138,7 +139,7 @@ void pong_message(int msg_type, struct process_id src, void *buf, size_t len)
}
printf("ping rate of %.0f messages/sec\n",
- (ping_count+pong_count)/timeval_elapsed(&tv));
+ (ping_count+pong_count)/timeval_elapsed(&tv));
}
return (0);