aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/test_peerstore_api.c
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-06-03 13:50:37 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-06-03 13:50:37 +0000
commita04d70028c0615e7910f68328db9c61bba67128b (patch)
tree8d27cc7e8ad6b25cf01ac2cbae6f2839deec00f8 /src/peerstore/test_peerstore_api.c
parenteb985bf2eae6054292e3cbffbfeb4aaea3e394d5 (diff)
downloadgnunet-a04d70028c0615e7910f68328db9c61bba67128b.tar.gz
gnunet-a04d70028c0615e7910f68328db9c61bba67128b.zip
peerstore: fixes in watch functionality
Diffstat (limited to 'src/peerstore/test_peerstore_api.c')
-rw-r--r--src/peerstore/test_peerstore_api.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/peerstore/test_peerstore_api.c b/src/peerstore/test_peerstore_api.c
index 02c8815c5..968467231 100644
--- a/src/peerstore/test_peerstore_api.c
+++ b/src/peerstore/test_peerstore_api.c
@@ -129,17 +129,6 @@ run (void *cls,
129 NULL); 129 NULL);
130} 130}
131 131
132int iterator (void *cls, const struct GNUNET_HashCode *key, void *value)
133{
134 struct GNUNET_CONTAINER_MultiHashMap *map = cls;
135 uint32_t *x = value;
136
137 printf("Received value: %d\n", *x);
138 if(*x == 2)
139 GNUNET_CONTAINER_multihashmap_remove(map, key, value);
140 return GNUNET_YES;
141}
142
143int 132int
144main (int argc, char *argv[]) 133main (int argc, char *argv[])
145{ 134{