mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue