diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-27 09:39:41 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-27 09:39:41 +0000 |
commit | 6cccd878eeab34115d87b75fa018582422f04dd4 (patch) | |
tree | f24e01777b791d101225c999dd95cb2820612aa5 /src/datastore/test_datastore_api.c | |
parent | 5be02c06ab32edcc8ab3ea6b8ff291ba946ed831 (diff) | |
download | gnunet-6cccd878eeab34115d87b75fa018582422f04dd4.tar.gz gnunet-6cccd878eeab34115d87b75fa018582422f04dd4.zip |
Refactoring gnunet time
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r-- | src/datastore/test_datastore_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 10a195cfb..ae7782d6c 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c | |||
@@ -95,7 +95,7 @@ get_expiration (int i) | |||
95 | { | 95 | { |
96 | struct GNUNET_TIME_Absolute av; | 96 | struct GNUNET_TIME_Absolute av; |
97 | 97 | ||
98 | av.value = now.value + 20000000 - i * 1000; | 98 | av.abs_value = now.abs_value + 20000000 - i * 1000; |
99 | return av; | 99 | return av; |
100 | } | 100 | } |
101 | 101 | ||
@@ -213,7 +213,7 @@ check_value (void *cls, | |||
213 | GNUNET_assert (type == get_type (i)); | 213 | GNUNET_assert (type == get_type (i)); |
214 | GNUNET_assert (priority == get_priority (i)); | 214 | GNUNET_assert (priority == get_priority (i)); |
215 | GNUNET_assert (anonymity == get_anonymity(i)); | 215 | GNUNET_assert (anonymity == get_anonymity(i)); |
216 | GNUNET_assert (expiration.value == get_expiration(i).value); | 216 | GNUNET_assert (expiration.abs_value == get_expiration(i).abs_value); |
217 | GNUNET_DATASTORE_get_next (datastore, GNUNET_YES); | 217 | GNUNET_DATASTORE_get_next (datastore, GNUNET_YES); |
218 | } | 218 | } |
219 | 219 | ||