Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/stat



In article <20101124225754.6201E175D0%cvs.netbsd.org@localhost>,
David A. Holland <source-changes-d%NetBSD.org@localhost> wrote:

>-              (void)snprintf(tmp, sizeof(tmp), "%dd", prec > 9 ? 9 : prec);
>+              (void)snprintf(tmp, sizeof(tmp), "%dld", prec > 9 ? 9 : prec);

perhaps %dlld?

>               (void)strcat(lfmt, tmp);

>-              l = snprintf(buf, blen, lfmt, secs, nsecs);
>+              l = snprintf(buf, blen, lfmt, (long long)secs, nsecs);

christos



Home | Main Index | Thread Index | Old Index