In usr.sbin/rpc.ypupdated/yp_dbupdate.c, since intmax_t is signed, just

like time_t, better use %jd instead of %ju.  Strangely enough, neither
gcc, clang nor gcc 4.6 warn about this discrepancy...

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-18 00:55:46 +00:00
parent ae1d153674
commit 0af4e80ae5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228680

View File

@ -131,7 +131,7 @@ ypmap_update(char *netname, char *map, unsigned int op, unsigned int keylen,
return(rval);
}
snprintf(yplastbuf, sizeof(yplastbuf), "%ju", (intmax_t)time(NULL));
snprintf(yplastbuf, sizeof(yplastbuf), "%jd", (intmax_t)time(NULL));
key.data = yp_last;
key.size = strlen(yp_last);
data.data = (char *)&yplastbuf;