]> git.saurik.com Git - redis.git/commitdiff
fixed an alignment problem with time_t is 32 bit, long is 64 bit, and arch is sparc...
authorantirez <antirez@gmail.com>
Thu, 7 Oct 2010 14:21:35 +0000 (16:21 +0200)
committerantirez <antirez@gmail.com>
Thu, 7 Oct 2010 14:21:35 +0000 (16:21 +0200)
src/db.c

index 470310a304c279536efbf6ddc313a9a3eea05714..445078474c9fa666a98baf77d20fbc150a5f655d 100644 (file)
--- a/src/db.c
+++ b/src/db.c
@@ -478,7 +478,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
 
 void expireGenericCommand(redisClient *c, robj *key, robj *param, long offset) {
     dictEntry *de;
-    time_t seconds;
+    long seconds;
 
     if (getLongFromObjectOrReply(c, param, &seconds, NULL) != REDIS_OK) return;