diff options
Diffstat (limited to 'sysdep/unix/main.c')
-rw-r--r-- | sysdep/unix/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index a52ae3ca..282afae2 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -533,7 +533,7 @@ write_pid_file(void) /* We don't use PID file for uniqueness, so no need for locking */ - pl = bsnprintf(ps, sizeof(ps), "%ld\n", (long) getpid()); + pl = bsnprintf(ps, sizeof(ps), "%ld\n", (s64) getpid()); if (pl < 0) bug("PID buffer too small"); |