CLEANUP: time: curr_sec_ms doesn't need to be exported
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Mar 2017 13:24:33 +0000 (15:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Mar 2017 13:24:33 +0000 (15:24 +0200)
It's not used anywhere outside of tv_update_date().

src/time.c

index 6118762..a63968a 100644 (file)
@@ -16,7 +16,6 @@
 #include <common/standard.h>
 #include <common/time.h>
 
-unsigned int   curr_sec_ms;     /* millisecond of current second (0..999) */
 unsigned int   ms_left_scaled;  /* milliseconds left for current second (0..2^32-1) */
 unsigned int   now_ms;          /* internal date in milliseconds (may wrap) */
 unsigned int   samp_time;       /* total elapsed time over current sample */
@@ -165,6 +164,7 @@ REGPRM2 void tv_update_date(int max_wait, int interrupted)
 {
        static struct timeval tv_offset; /* warning: signed offset! */
        struct timeval adjusted, deadline;
+       unsigned int   curr_sec_ms;     /* millisecond of current second (0..999) */
 
        gettimeofday(&date, NULL);
        if (unlikely(max_wait < 0)) {