diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-06-03 13:50:37 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-06-03 13:50:37 +0000 |
commit | a04d70028c0615e7910f68328db9c61bba67128b (patch) | |
tree | 8d27cc7e8ad6b25cf01ac2cbae6f2839deec00f8 /src/peerstore/test_peerstore_api.c | |
parent | eb985bf2eae6054292e3cbffbfeb4aaea3e394d5 (diff) | |
download | gnunet-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.c | 11 |
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 | ||
132 | int 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 | |||
143 | int | 132 | int |
144 | main (int argc, char *argv[]) | 133 | main (int argc, char *argv[]) |
145 | { | 134 | { |