openbsd-ports/databases/redis/patches/patch-redis_c

17 lines
545 B
Plaintext
Raw Normal View History

$OpenBSD: patch-redis_c,v 1.2 2010/10/17 12:48:46 dcoppa Exp $
Fix an alignment problem that was causing a SIGBUS on strict alignment
archs like SPARC
--- redis.c.orig Fri Oct 15 13:07:25 2010
+++ redis.c Sun Oct 17 13:41:22 2010
@@ -7444,7 +7444,7 @@ static int deleteIfVolatile(redisDb *db, robj *key) {
static 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;