Re: svn commit: r228625 - head/usr.bin/csup

[ Available lists | Index of svn-src-all | Month of Dec 2011 | Week of 17 Dec 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dimitry Andric <dim@FreeBSD.org>
Date
17 Dec 2011 21:54:28
Subject
Re: svn commit: r228625 - head/usr.bin/csup
Message-ID
4EED0F99.2020306@FreeBSD.org


[ Hide this part ]
On 2011-12-17 22:32, mdf@FreeBSD.org wrote:
...
>> In usr.bin/csup/auth.c, use the correct number of bytes for zeroing the
>> shared secret, and use long long format to snprintf a time_t.
> If casting is necessary, style prefers intmax_t or uintmax_t, since
> those are always wide enough.

I don't see anything about that in style(9), maybe it should be added
then? In any case, I only changed the %ld format to %lld, because
time_t is int, long or long long depending on arch. Long long is just
the widest type required in this case.



Elapsed time: 0.111 seconds