diff options
author | dim <dim@FreeBSD.org> | 2011-12-17 22:20:46 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-17 22:20:46 +0000 |
commit | 226b72cf0dff4f0cea0bf5a926dc198713e21f10 (patch) | |
tree | 351bba4b5b9f0cba4aff690b92b796658bc9392c /usr.bin | |
parent | d3234bb2c0b8e219b730990c45c8d9f17ee63c2b (diff) | |
download | FreeBSD-src-226b72cf0dff4f0cea0bf5a926dc198713e21f10.zip FreeBSD-src-226b72cf0dff4f0cea0bf5a926dc198713e21f10.tar.gz |
In usr.bin/csup/auth.c, cast time_t to intmax_t instead, and use the
corresponding printf length modifier.
Requested by: mdf
MFC after: 1 week
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/csup/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/csup/auth.c b/usr.bin/csup/auth.c index 516be70..7ae2500 100644 --- a/usr.bin/csup/auth.c +++ b/usr.bin/csup/auth.c @@ -302,8 +302,8 @@ auth_makechallenge(struct config *config, char *challenge) } gettimeofday(&tv, NULL); MD5_Init(&md5); - snprintf(buf, sizeof(buf), "%s:%lld:%ld:%ld:%d:%d", - inet_ntoa(laddr.sin_addr), (long long)tv.tv_sec, tv.tv_usec, + snprintf(buf, sizeof(buf), "%s:%jd:%ld:%ld:%d:%d", + inet_ntoa(laddr.sin_addr), (intmax_t)tv.tv_sec, tv.tv_usec, random(), pid, ppid); MD5_Update(&md5, buf, strlen(buf)); MD5_Final(md5sum, &md5); |