mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 23:05:49 +01:00
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:
parent
ae1d153674
commit
0af4e80ae5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228680
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user