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
@ -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…
x
Reference in New Issue
Block a user