diff options
author | dim <dim@FreeBSD.org> | 2011-12-18 00:40:30 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-18 00:40:30 +0000 |
commit | 3785c803c74989379b58c828ebdba468ea9ffefd (patch) | |
tree | 5cda7e501f559ffcea72f8f164dbb9aa7869ab36 /usr.sbin | |
parent | c33f43657fb18a2032cf85bbbe9de44fd81475e4 (diff) | |
download | FreeBSD-src-3785c803c74989379b58c828ebdba468ea9ffefd.zip FreeBSD-src-3785c803c74989379b58c828ebdba468ea9ffefd.tar.gz |
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, use the appropriate printf
length modifier for time_t (after casting it to intmax_t).
MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpc.ypupdated/yp_dbupdate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpc.ypupdated/yp_dbupdate.c b/usr.sbin/rpc.ypupdated/yp_dbupdate.c index 453ed2b..6fa0b129 100644 --- a/usr.sbin/rpc.ypupdated/yp_dbupdate.c +++ b/usr.sbin/rpc.ypupdated/yp_dbupdate.c @@ -130,7 +130,7 @@ ypmap_update(char *netname, char *map, unsigned int op, unsigned int keylen, return(rval); } - snprintf(yplastbuf, sizeof(yplastbuf), "%lu", time(NULL)); + snprintf(yplastbuf, sizeof(yplastbuf), "%ju", (intmax_t)time(NULL)); key.data = yp_last; key.size = strlen(yp_last); data.data = (char *)&yplastbuf; |