summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-18 00:40:30 +0000
committerdim <dim@FreeBSD.org>2011-12-18 00:40:30 +0000
commit3785c803c74989379b58c828ebdba468ea9ffefd (patch)
tree5cda7e501f559ffcea72f8f164dbb9aa7869ab36 /usr.sbin
parentc33f43657fb18a2032cf85bbbe9de44fd81475e4 (diff)
downloadFreeBSD-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.c2
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;
OpenPOWER on IntegriCloud