r21116: Fix the build -- sorry!
authorVolker Lendecke <vlendec@samba.org>
Thu, 1 Feb 2007 22:06:59 +0000 (22:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:39 +0000 (12:17 -0500)
(This used to be commit f4b073d8c85070290f475e7e2575c1233b9a9c4e)

source3/torture/msgtest.c

index ad1b35a9dd818822957897eb12bde4900c3175f8..5a066bc599e0efe70ddc955b9e815ab797c81ffe 100644 (file)
@@ -101,10 +101,14 @@ static void pong_message(int msg_type, struct process_id src,
 
                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++;
-                       if(message_send_pid(pid_to_procid(pid), MSG_PING,
-                                           NULL, 0, False)) ping_count++;
+                       if(NT_STATUS_IS_OK(message_send_pid(pid_to_procid(pid),
+                                                           MSG_PING,
+                                                           buf, 11, False)))
+                          ping_count++;
+                       if(NT_STATUS_IS_OK(message_send_pid(pid_to_procid(pid),
+                                                           MSG_PING,
+                                                           NULL, 0, False)))
+                          ping_count++;
 
                        while (ping_count > pong_count + 20) {
                                message_dispatch();