X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=daemon.c;h=b1fd60dd0c6ea5915340675a9f9691b027ca87e5;hb=b5cf3c8b7767e5f2c8b0df718ef91ccfc36c61fe;hp=4e63bb8d617bf39742ea10eccd4ccb13ad01f0ac;hpb=348c4c66dacb1810a9bcd592e72f98a465233488;p=git.git 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);