s3: Remove some explicit calls to procid_self()
authorVolker Lendecke <vl@samba.org>
Mon, 19 Jul 2010 19:00:41 +0000 (21:00 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 6 Aug 2010 13:15:57 +0000 (15:15 +0200)
source3/torture/msgtest.c

index 104b171e64f6b2176b83c0666104558201731370..6d1a6897724ee361c1517d15c6afc982d88029be 100644 (file)
@@ -88,10 +88,10 @@ static void pong_message(struct messaging_context *msg_ctx,
        safe_strcpy(buf, "1234567890", sizeof(buf)-1);
 
        for (i=0;i<n;i++) {
-               messaging_send(msg_ctx, procid_self(), MSG_PING,
+               messaging_send(msg_ctx, messaging_server_id(msg_ctx), MSG_PING,
                               &data_blob_null);
-               messaging_send_buf(msg_ctx, procid_self(), MSG_PING,
-                                  (uint8 *)buf, 11);
+               messaging_send_buf(msg_ctx, messaging_server_id(msg_ctx),
+                                  MSG_PING,(uint8 *)buf, 11);
        }
 
        for (i=0;i<n;i++) {