]> 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:35:51 +0000 (17:35 +0200)
commite9f0419c99f12711493e0b0c692acb4ed8f4bc03
tree5b7702a206fc903e4ee23c5b4c7ce6d80ca2b220
parentb3624f5a160c2a3372ef1a0ab1858a804b7cbfc0
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