author | David Soria Parra <dsp@php.net> | |
Sun, 31 Aug 2008 12:09:39 +0000 (14:09 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 31 Aug 2008 23:56:22 +0000 (16:56 -0700) | ||
commit | 85e72830697a23dd6b1af8b6bfb3c1a7be60dfae | |
tree | 79d92b09ff24b887bca91fa28f9d573efb2aed69 | tree | snapshot |
parent | 7f314565fe20e324e8db1a7c233e43ca4e3683f0 | commit | diff |
cast pid_t's to uintmax_t to improve portability
Some systems (like e.g. OpenSolaris) define pid_t as long,
therefore all our sprintf that use %i/%d cause a compiler warning
beacuse of the implicit long->int cast. To make sure that
we fit the limits, we display pids as PRIuMAX and cast them explicitly
to uintmax_t.
Signed-off-by: David Soria Parra <dsp@php.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Some systems (like e.g. OpenSolaris) define pid_t as long,
therefore all our sprintf that use %i/%d cause a compiler warning
beacuse of the implicit long->int cast. To make sure that
we fit the limits, we display pids as PRIuMAX and cast them explicitly
to uintmax_t.
Signed-off-by: David Soria Parra <dsp@php.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | diff | blob | history | |
builtin-fetch-pack.c | diff | blob | history | |
daemon.c | diff | blob | history | |
fast-import.c | diff | blob | history | |
receive-pack.c | diff | blob | history |