diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-12-06 15:46:54 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-06 15:46:54 -0500 |
commit | 046acf208bc53a3fa7ea9967707835188eb6651c (patch) | |
tree | 2690e97092dc0855560fe017a77d33f14591f17e /src/common/compat_time.c | |
parent | 5f518c69aa634ee3487c2d8b40d2b4b0c3317f52 (diff) | |
download | tor-046acf208bc53a3fa7ea9967707835188eb6651c.tar.gz tor-046acf208bc53a3fa7ea9967707835188eb6651c.zip |
Fix a compiler warning
Diffstat (limited to 'src/common/compat_time.c')
-rw-r--r-- | src/common/compat_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/compat_time.c b/src/common/compat_time.c index 7c89881667..84033d5d22 100644 --- a/src/common/compat_time.c +++ b/src/common/compat_time.c @@ -415,7 +415,7 @@ monotime_diff_nsec(const monotime_t *start, } /* This value is ONE_BILLION >> 20. */ -const uint32_t STAMP_TICKS_PER_SECOND = 953; +static const uint32_t STAMP_TICKS_PER_SECOND = 953; uint32_t monotime_coarse_to_stamp(const monotime_coarse_t *t) @@ -558,7 +558,7 @@ monotime_coarse_diff_nsec(const monotime_coarse_t *start, return monotime_coarse_diff_msec(start, end) * ONE_MILLION; } -const uint32_t STAMP_TICKS_PER_SECOND = 1000; +static const uint32_t STAMP_TICKS_PER_SECOND = 1000; uint32_t monotime_coarse_to_stamp(const monotime_coarse_t *t) @@ -603,7 +603,7 @@ monotime_diff_nsec(const monotime_t *start, } /* This value is ONE_MILLION >> 10. */ -const uint32_t STAMP_TICKS_PER_SECOND = 976; +static const uint32_t STAMP_TICKS_PER_SECOND = 976; uint32_t monotime_coarse_to_stamp(const monotime_coarse_t *t) |