s3-lib/server_prefork: Cast pid_t result to unsigned int for GNU/Solaris build
authorAndrew Bartlett <abartlet@samba.org>
Thu, 14 Mar 2013 09:36:34 +0000 (20:36 +1100)
committerJeremy Allison <jra@samba.org>
Fri, 15 Mar 2013 17:38:40 +0000 (10:38 -0700)
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/server_prefork.c

index 49d1778085c537f1969c63c0951e4c16a712faec..c725607e9578f4ce0800b59c7050c82ec41c66ca 100644 (file)
@@ -277,7 +277,7 @@ int prefork_retire_children(struct messaging_context *msg_ctx,
                     (pfp->pool[i].num_clients < 1)) &&
                    (pfp->pool[i].started <= age_limit)) {
                        /* tell the child it's time to give up */
-                       DEBUG(5, ("Retiring pid %d!\n", pfp->pool[i].pid));
+                       DEBUG(5, ("Retiring pid %u!\n", (unsigned int)pfp->pool[i].pid));
                        pfp->pool[i].cmds = PF_SRV_MSG_EXIT;
                        messaging_send(msg_ctx,
                                        pid_to_procid(pfp->pool[i].pid),