Skip to content

Commit e9f0419

Browse files
committed
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.
1 parent b3624f5 commit e9f0419

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/redis-cli.c

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <string.h>
3636
#include <stdlib.h>
3737
#include <unistd.h>
38+
#include <time.h>
3839
#include <ctype.h>
3940
#include <errno.h>
4041
#include <sys/stat.h>

0 commit comments

Comments
 (0)