summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/process_onefork.c2
-rw-r--r--source4/smbd/process_prefork.c4
-rw-r--r--source4/smbd/process_standard.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/source4/smbd/process_onefork.c b/source4/smbd/process_onefork.c
index 5194e1bda6..59e583dca3 100644
--- a/source4/smbd/process_onefork.c
+++ b/source4/smbd/process_onefork.c
@@ -111,7 +111,7 @@ static void onefork_new_task(struct tevent_context *ev,
smb_panic("Failed to re-initialise tevent after fork");
}
- setproctitle("task %s server_id[%d]", service_name, pid);
+ setproctitle("task %s server_id[%d]", service_name, (int)pid);
onefork_reload_after_fork();
diff --git a/source4/smbd/process_prefork.c b/source4/smbd/process_prefork.c
index 71c1c57162..66222af63f 100644
--- a/source4/smbd/process_prefork.c
+++ b/source4/smbd/process_prefork.c
@@ -122,7 +122,7 @@ static void prefork_new_task(struct tevent_context *ev,
is not associated with this new connection */
talloc_free(ev);
- setproctitle("task %s server_id[%d]", service_name, pid);
+ setproctitle("task %s server_id[%d]", service_name, (int)pid);
prefork_reload_after_fork();
@@ -151,7 +151,7 @@ static void prefork_new_task(struct tevent_context *ev,
return;
} else {
pid = getpid();
- setproctitle("task %s server_id[%d]", service_name, pid);
+ setproctitle("task %s server_id[%d]", service_name, (int)pid);
prefork_reload_after_fork();
diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c
index 99e815a160..c5cd9fd5b8 100644
--- a/source4/smbd/process_standard.c
+++ b/source4/smbd/process_standard.c
@@ -133,7 +133,7 @@ static void standard_accept_connection(struct tevent_context *ev,
s = socket_get_my_addr(sock2, ev);
if (s && c) {
setproctitle("conn c[%s:%u] s[%s:%u] server_id[%d]",
- c->addr, c->port, s->addr, s->port, pid);
+ c->addr, c->port, s->addr, s->port, (int)pid);
}
talloc_free(c);
talloc_free(s);
@@ -186,7 +186,7 @@ static void standard_new_task(struct tevent_context *ev,
/* Ensure that the forked children do not expose identical random streams */
set_need_random_reseed();
- setproctitle("task %s server_id[%d]", service_name, pid);
+ setproctitle("task %s server_id[%d]", service_name, (int)pid);
/* setup this new task. Cluster ID is PID based for this process modal */
new_task(ev, lp_ctx, cluster_id(pid, 0), private_data);