summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-05-14 17:35:51 +0200
committerantirez <antirez@gmail.com>2012-05-14 17:35:51 +0200
commite9f0419c99f12711493e0b0c692acb4ed8f4bc03 (patch)
tree5b7702a206fc903e4ee23c5b4c7ce6d80ca2b220 /src
parentb3624f5a160c2a3372ef1a0ab1858a804b7cbfc0 (diff)
downloadredis-e9f0419c99f12711493e0b0c692acb4ed8f4bc03.tar.gz
Added time.h include in redis-cli.
redis-cli.c uses the time() function to seed the PRNG, but time.h was not included. This was not noticed since sys/time.h is included and was enough in most systems (but not correct). With Ubuntu 12.04 GCC generates a warning that made us aware of the issue.
Diffstat (limited to 'src')
-rw-r--r--src/redis-cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index ca2f06233..f48558795 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -35,6 +35,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
+#include <time.h>
#include <ctype.h>
#include <errno.h>
#include <sys/stat.h>