Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
daemon.c: pid_t is not int.
author
Junio C Hamano
<junkio@cox.net>
Sat, 24 Sep 2005 06:26:55 +0000
(23:26 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 24 Sep 2005 06:26:55 +0000
(23:26 -0700)
Reported by Morten Welinder <mwelinder@gmail.com>.
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
348c4c6
)
diff --git
a/daemon.c
b/daemon.c
index 4e63bb8d617bf39742ea10eccd4ccb13ad01f0ac..b1fd60dd0c6ea5915340675a9f9691b027ca87e5 100644
(file)
--- 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);