diff options
Diffstat (limited to 'src/peerstore/peerstore_api.c')
-rw-r--r-- | src/peerstore/peerstore_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c index 68c171d52..aa798e653 100644 --- a/src/peerstore/peerstore_api.c +++ b/src/peerstore/peerstore_api.c | |||
@@ -194,7 +194,7 @@ GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc) | |||
194 | * @param key entry key | 194 | * @param key entry key |
195 | * @param value entry value BLOB | 195 | * @param value entry value BLOB |
196 | * @param size size of 'value' | 196 | * @param size size of 'value' |
197 | * @param lifetime relative time after which the entry is (possibly) deleted | 197 | * @param expiry absolute time after which the entry is (possibly) deleted |
198 | * @param cont Continuation function after the store request is processed | 198 | * @param cont Continuation function after the store request is processed |
199 | * @param cont_cls Closure for 'cont' | 199 | * @param cont_cls Closure for 'cont' |
200 | */ | 200 | */ |
@@ -205,7 +205,7 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | |||
205 | const char *key, | 205 | const char *key, |
206 | const void *value, | 206 | const void *value, |
207 | size_t size, | 207 | size_t size, |
208 | struct GNUNET_TIME_Relative lifetime, | 208 | struct GNUNET_TIME_Absolute expiry, |
209 | GNUNET_PEERSTORE_Continuation cont, | 209 | GNUNET_PEERSTORE_Continuation cont, |
210 | void *cont_cls) | 210 | void *cont_cls) |
211 | { | 211 | { |
@@ -224,7 +224,8 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | |||
224 | key, | 224 | key, |
225 | value, | 225 | value, |
226 | size, | 226 | size, |
227 | lifetime); | 227 | expiry, |
228 | GNUNET_MESSAGE_TYPE_PEERSTORE_STORE); | ||
228 | GNUNET_CLIENT_transmit_and_get_response(h->client, | 229 | GNUNET_CLIENT_transmit_and_get_response(h->client, |
229 | (const struct GNUNET_MessageHeader *)srm, | 230 | (const struct GNUNET_MessageHeader *)srm, |
230 | GNUNET_TIME_UNIT_FOREVER_REL, | 231 | GNUNET_TIME_UNIT_FOREVER_REL, |
@@ -235,5 +236,4 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | |||
235 | 236 | ||
236 | } | 237 | } |
237 | 238 | ||
238 | |||
239 | /* end of peerstore_api.c */ | 239 | /* end of peerstore_api.c */ |