diff options
author | David Soria Parra <dsp@php.net> | 2008-08-31 14:09:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-31 16:56:22 -0700 |
commit | 85e72830697a23dd6b1af8b6bfb3c1a7be60dfae (patch) | |
tree | 79d92b09ff24b887bca91fa28f9d573efb2aed69 /COPYING | |
parent | Merge branch 'maint' (diff) | |
download | tgif-85e72830697a23dd6b1af8b6bfb3c1a7be60dfae.tar.xz |
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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions