From dab5332f95bd2f4fabf8e746b0998cd5bc37e448 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 9 Nov 2011 21:59:27 +0100 Subject: [PATCH] Fixed a few typos --- src/rdb.c | 2 +- src/rdb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rdb.c b/src/rdb.c index bb9121c8..e11f5c9c 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -997,7 +997,7 @@ int rdbLoad(char *filename) { if ((expiretime = rdbLoadTime(&rdb)) == -1) goto eoferr; /* We read the time so we need to read the object type again. */ if ((type = rdbLoadType(&rdb)) == -1) goto eoferr; - /* the EXPIREITME opcode specifies time in seconds, so convert + /* the EXPIRETIME opcode specifies time in seconds, so convert * into milliesconds. */ expiretime *= 1000; } else if (type == REDIS_RDB_OPCODE_EXPIRETIME_MS) { diff --git a/src/rdb.h b/src/rdb.h index cfe13acb..827947b4 100644 --- a/src/rdb.h +++ b/src/rdb.h @@ -77,7 +77,7 @@ off_t rdbSavedObjectLen(robj *o); off_t rdbSavedObjectPages(robj *o); robj *rdbLoadObject(int type, rio *rdb); void backgroundSaveDoneHandler(int exitcode, int bysignal); -int rdbSaveKeyValuePair(rio *rdb, robj *key, robj *val, long long expireitme, long long now); +int rdbSaveKeyValuePair(rio *rdb, robj *key, robj *val, long long expiretime, long long now); robj *rdbLoadStringObject(rio *rdb); #endif -- 2.47.2