diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-01 22:06:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:39 -0500 |
commit | 29569b9146b1782dcd000d972c437132ab3c5947 (patch) | |
tree | 69357a48a6fef148ad65e2f78bab4d1f39c050bc /source3 | |
parent | 69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a (diff) | |
download | samba-29569b9146b1782dcd000d972c437132ab3c5947.tar.gz samba-29569b9146b1782dcd000d972c437132ab3c5947.tar.bz2 samba-29569b9146b1782dcd000d972c437132ab3c5947.zip |
r21116: Fix the build -- sorry!
(This used to be commit f4b073d8c85070290f475e7e2575c1233b9a9c4e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/msgtest.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/torture/msgtest.c b/source3/torture/msgtest.c index ad1b35a9dd..5a066bc599 100644 --- a/source3/torture/msgtest.c +++ b/source3/torture/msgtest.c @@ -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(); |