diff options
Diffstat (limited to 'source4/lib/time.c')
-rw-r--r-- | source4/lib/time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/time.c b/source4/lib/time.c index 9d906af2fa..bd8d7ddb30 100644 --- a/source4/lib/time.c +++ b/source4/lib/time.c @@ -410,9 +410,9 @@ NTTIME nttime_from_string(const char *s) return strtoull(s, NULL, 0); } -long long usec_time_diff(struct timeval *larget, struct timeval *smallt) +int64_t usec_time_diff(struct timeval *larget, struct timeval *smallt) { - long long sec_diff = larget->tv_sec - smallt->tv_sec; - return (sec_diff * 1000000) + (long long)(larget->tv_usec - smallt->tv_usec); + int64_t sec_diff = larget->tv_sec - smallt->tv_sec; + return (sec_diff * 1000000) + (int64_t)(larget->tv_usec - smallt->tv_usec); } |