diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-21 23:20:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-21 23:20:36 +0000 |
commit | c8a0595aee76d863605801d76589e83926693ca7 (patch) | |
tree | 63640c2a03601ce8b1fb5797b23f55e99bc32aeb /src/datastore/datastore_api.c | |
parent | 050ce82c79ef540b308a2bcee7514dd563fc5795 (diff) | |
download | gnunet-c8a0595aee76d863605801d76589e83926693ca7.tar.gz gnunet-c8a0595aee76d863605801d76589e83926693ca7.zip |
reservations
Diffstat (limited to 'src/datastore/datastore_api.c')
-rw-r--r-- | src/datastore/datastore_api.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index dfca2cca3..f9a28800c 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c | |||
@@ -397,7 +397,7 @@ GNUNET_DATASTORE_put (struct GNUNET_DATASTORE_Handle *h, | |||
397 | void | 397 | void |
398 | GNUNET_DATASTORE_reserve (struct GNUNET_DATASTORE_Handle *h, | 398 | GNUNET_DATASTORE_reserve (struct GNUNET_DATASTORE_Handle *h, |
399 | uint64_t amount, | 399 | uint64_t amount, |
400 | uint64_t entries, | 400 | uint32_t entries, |
401 | GNUNET_DATASTORE_ContinuationWithStatus cont, | 401 | GNUNET_DATASTORE_ContinuationWithStatus cont, |
402 | void *cont_cls, | 402 | void *cont_cls, |
403 | struct GNUNET_TIME_Relative timeout) | 403 | struct GNUNET_TIME_Relative timeout) |
@@ -407,9 +407,8 @@ GNUNET_DATASTORE_reserve (struct GNUNET_DATASTORE_Handle *h, | |||
407 | rm = (struct ReserveMessage*) &h[1]; | 407 | rm = (struct ReserveMessage*) &h[1]; |
408 | rm->header.type = htons(GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE); | 408 | rm->header.type = htons(GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE); |
409 | rm->header.size = htons(sizeof (struct ReserveMessage)); | 409 | rm->header.size = htons(sizeof (struct ReserveMessage)); |
410 | rm->reserved = htonl(0); | ||
411 | rm->amount = htonl(amount); | ||
412 | rm->entries = htonl(entries); | 410 | rm->entries = htonl(entries); |
411 | rm->amount = htonl(amount); | ||
413 | transmit_for_status (h, cont, cont_cls, timeout); | 412 | transmit_for_status (h, cont, cont_cls, timeout); |
414 | } | 413 | } |
415 | 414 | ||