diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-17 23:41:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-17 23:41:52 +0000 |
commit | 5c4b90072573749162ebb441da216c0deaf26fea (patch) | |
tree | 65dfa183d9935f6a60e9c8b5c40a581c3c1f552e | |
parent | 378329622ec0a18b48da5c220fed73a86a5703ef (diff) | |
download | gnunet-5c4b90072573749162ebb441da216c0deaf26fea.tar.gz gnunet-5c4b90072573749162ebb441da216c0deaf26fea.zip |
sn
-rw-r--r-- | src/util/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/time.c b/src/util/time.c index f1f6010d4..f3d17f421 100644 --- a/src/util/time.c +++ b/src/util/time.c | |||
@@ -40,7 +40,7 @@ GNUNET_TIME_absolute_get () | |||
40 | struct timeval tv; | 40 | struct timeval tv; |
41 | 41 | ||
42 | GETTIMEOFDAY (&tv, NULL); | 42 | GETTIMEOFDAY (&tv, NULL); |
43 | ret.value = tv.tv_sec * 1000 + tv.tv_usec / 1000; | 43 | ret.value = (uint64_t) (((uint64_t) tv.tv_sec * 1000LL) + ((uint64_t) tv.tv_usec / 1000LL)); |
44 | return ret; | 44 | return ret; |
45 | } | 45 | } |
46 | 46 | ||
@@ -223,7 +223,7 @@ GNUNET_TIME_relative_multiply (struct GNUNET_TIME_Relative rel, | |||
223 | { | 223 | { |
224 | GNUNET_break (0); | 224 | GNUNET_break (0); |
225 | return GNUNET_TIME_relative_get_forever (); | 225 | return GNUNET_TIME_relative_get_forever (); |
226 | } | 226 | } |
227 | return ret; | 227 | return ret; |
228 | } | 228 | } |
229 | 229 | ||