diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-23 23:26:55 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-23 23:26:55 -0700 |
commit | 1bedd4ca2130c3b8c6d9a68cbbaa29e053269a66 (patch) | |
tree | 5b23912e61343d3165d3dd086b8b8b3c1afc2bcb | |
parent | 348c4c66dacb1810a9bcd592e72f98a465233488 (diff) | |
download | git-1bedd4ca2130c3b8c6d9a68cbbaa29e053269a66.tar.gz git-1bedd4ca2130c3b8c6d9a68cbbaa29e053269a66.tar.xz |
daemon.c: pid_t is not int.
Reported by Morten Welinder <mwelinder@gmail.com>.
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r-- | daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |