From: Junio C Hamano Date: Sat, 24 Sep 2005 06:26:55 +0000 (-0700) Subject: daemon.c: pid_t is not int. X-Git-Tag: v0.99.8~73 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1bedd4ca2130c3b8c6d9a68cbbaa29e053269a66;p=git.git daemon.c: pid_t is not int. Reported by Morten Welinder . Signed-off-by: Junio C Hamano --- diff --git a/daemon.c b/daemon.c index 4e63bb8d..b1fd60dd 100644 --- a/daemon.c +++ b/daemon.c @@ -22,7 +22,7 @@ static void logreport(const char *err, va_list params) int maxlen, msglen; /* sizeof(buf) should be big enough for "[pid] \n" */ - buflen = snprintf(buf, sizeof(buf), "[%d] ", getpid()); + buflen = snprintf(buf, sizeof(buf), "[%ld] ", (long) getpid()); maxlen = sizeof(buf) - buflen - 1; /* -1 for our own LF */ msglen = vsnprintf(buf + buflen, maxlen, err, params);