projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- fix coverity 10365
[oweals/gnunet.git]
/
src
/
namestore
/
test_namestore_api_zone_iteration.c
diff --git
a/src/namestore/test_namestore_api_zone_iteration.c
b/src/namestore/test_namestore_api_zone_iteration.c
index 5a8b12778599ecc2eb8c0a86e99bf3495ebec2b7..08224c1d86a075ee9f580f5bfb0345307271fadc 100644
(file)
--- a/
src/namestore/test_namestore_api_zone_iteration.c
+++ b/
src/namestore/test_namestore_api_zone_iteration.c
@@
-28,7
+28,7
@@
#include "namestore.h"
#include "namestore.h"
-#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
+#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10
0
)
static struct GNUNET_NAMESTORE_Handle * nsh;
static struct GNUNET_NAMESTORE_Handle * nsh;
@@
-187,7
+187,7
@@
zone_proc (void *cls,
const struct GNUNET_CRYPTO_RsaSignature *signature)
{
int failed = GNUNET_NO;
const struct GNUNET_CRYPTO_RsaSignature *signature)
{
int failed = GNUNET_NO;
- if ((zone_key == NULL) &&
(name == NULL))
+ if ((zone_key == NULL) && (name == NULL))
{
GNUNET_break (3 == returned_records);
if (3 == returned_records)
{
GNUNET_break (3 == returned_records);
if (3 == returned_records)
@@
-353,7
+353,7
@@
create_record (unsigned int count)
rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData));
for (c = 0; c < count; c++)
{
rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData));
for (c = 0; c < count; c++)
{
- rd[c].expiration_time = GNUNET_TIME_
absolute_get(
).abs_value;
+ rd[c].expiration_time = GNUNET_TIME_
relative_to_absolute (GNUNET_TIME_UNIT_HOURS
).abs_value;
rd[c].record_type = 1111;
rd[c].data_size = 50;
rd[c].data = GNUNET_malloc(50);
rd[c].record_type = 1111;
rd[c].data_size = 50;
rd[c].data = GNUNET_malloc(50);