From 1bedd4ca2130c3b8c6d9a68cbbaa29e053269a66 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 23 Sep 2005 23:26:55 -0700 Subject: [PATCH] daemon.c: pid_t is not int. Reported by Morten Welinder . Signed-off-by: Junio C Hamano --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.c b/daemon.c index 4e63bb8d6..b1fd60dd0 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); -- 2.30.2