]> git.saurik.com Git - redis.git/commit
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)
commite67d014d9a4a5a7c9dbab3f2ace52f25661e7a64
tree1f9b73aadb823c624a6681508fa0b7763c93c179
parenteee680541b4ce3abbb86c39f47932c648fe478f5
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.
src/redis-cli.c