]> git.saurik.com Git - redis.git/commitdiff
Added time.h include in redis-cli.
authorantirez <antirez@gmail.com>
Mon, 14 May 2012 15:35:51 +0000 (17:35 +0200)
committerantirez <antirez@gmail.com>
Mon, 14 May 2012 15:43:31 +0000 (17:43 +0200)
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.


No differences found