Skip to content

Commit

Permalink
Added time.h include in redis-cli.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
antirez committed May 14, 2012
1 parent b3624f5 commit e9f0419
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redis-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e9f0419

Please sign in to comment.