don't assume time_t == long

time_t is always 64bit on recent versions of NetBSD.
This commit is contained in:
YAMAMOTO Takashi
2012-10-28 13:33:04 +09:00
parent ae82867664
commit 9fcead7a59
2 changed files with 24 additions and 24 deletions

View File

@ -974,8 +974,8 @@ void configGetCommand(redisClient *c) {
int j;
for (j = 0; j < server.saveparamslen; j++) {
buf = sdscatprintf(buf,"%ld %d",
server.saveparams[j].seconds,
buf = sdscatprintf(buf,"%jd %d",
(intmax_t)server.saveparams[j].seconds,
server.saveparams[j].changes);
if (j != server.saveparamslen-1)
buf = sdscatlen(buf," ",1);