Move mstime_t define outside sentinel.c.

The define is now used in other parts of Redis 2.8 tree instead of long
long.

A nice side effect is that now 2.8 and unstable sentinel.c files are
identical as it should be.
This commit is contained in:
antirez 2014-02-03 16:33:28 +01:00
parent c5bc592650
commit ddcf160309
2 changed files with 2 additions and 2 deletions

View File

@ -368,6 +368,8 @@
* Data types * Data types
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
typedef long long mstime_t; /* millisecond time type. */
/* A redis object, that is a type able to hold a string / list / set */ /* A redis object, that is a type able to hold a string / list / set */
/* The actual Redis Object */ /* The actual Redis Object */

View File

@ -44,8 +44,6 @@ extern char **environ;
/* ======================== Sentinel global state =========================== */ /* ======================== Sentinel global state =========================== */
typedef long long mstime_t; /* millisecond time type. */
/* Address object, used to describe an ip:port pair. */ /* Address object, used to describe an ip:port pair. */
typedef struct sentinelAddr { typedef struct sentinelAddr {
char *ip; char *ip;