Skip to content

Commit

Permalink
daemon.c: pid_t is not int.
Browse files Browse the repository at this point in the history
Reported by Morten Welinder <mwelinder@gmail.com>.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Sep 24, 2005
1 parent 348c4c6 commit 1bedd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1bedd4c

Please sign in to comment.