summaryrefslogtreecommitdiff
path: root/source4/lib/pidfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/pidfile.c')
-rw-r--r--source4/lib/pidfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/pidfile.c b/source4/lib/pidfile.c
index 3471f27b8e..7126482256 100644
--- a/source4/lib/pidfile.c
+++ b/source4/lib/pidfile.c
@@ -99,7 +99,7 @@ void pidfile_create(const char *name)
}
memset(buf, 0, sizeof(buf));
- slprintf(buf, sizeof(buf) - 1, "%u\n", (unsigned int) getpid());
+ slprintf(buf, sizeof(buf) - 1, "%u\n", (uint_t) getpid());
if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
DEBUG(0,("ERROR: can't write to file %s: %s\n",
pidFile, strerror(errno)));