diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-03 06:25:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-03 06:25:09 +0000 |
commit | 4a86e0b4faea9dc3e8bd1393ff0561fcf03ca785 (patch) | |
tree | 8417815af297e0967485cd427e0f0acf7daf91a4 /src/datastore/datastore_api.c | |
parent | 3e719ecc0f2252bfb01ce6ee057e6d63dd4b7037 (diff) | |
download | gnunet-4a86e0b4faea9dc3e8bd1393ff0561fcf03ca785.tar.gz gnunet-4a86e0b4faea9dc3e8bd1393ff0561fcf03ca785.zip |
dsfixes
Diffstat (limited to 'src/datastore/datastore_api.c')
-rw-r--r-- | src/datastore/datastore_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index 3b9e22a3a..a024d9e96 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c | |||
@@ -132,7 +132,7 @@ transmit_drop (void *cls, | |||
132 | GNUNET_assert (size >= sizeof(struct GNUNET_MessageHeader)); | 132 | GNUNET_assert (size >= sizeof(struct GNUNET_MessageHeader)); |
133 | hdr = buf; | 133 | hdr = buf; |
134 | hdr->size = htons(sizeof(struct GNUNET_MessageHeader)); | 134 | hdr->size = htons(sizeof(struct GNUNET_MessageHeader)); |
135 | hdr->type = htons(GNUNET_MESSAGE_TYPE_DATASTORE_DROP)); | 135 | hdr->type = htons(GNUNET_MESSAGE_TYPE_DATASTORE_DROP); |
136 | GNUNET_DATASTORE_disconnect (h, GNUNET_NO); | 136 | GNUNET_DATASTORE_disconnect (h, GNUNET_NO); |
137 | return sizeof(struct GNUNET_MessageHeader); | 137 | return sizeof(struct GNUNET_MessageHeader); |
138 | } | 138 | } |
@@ -252,7 +252,7 @@ GNUNET_DATASTORE_put (struct GNUNET_DATASTORE_Handle *h, | |||
252 | dm->priority = htonl(priority); | 252 | dm->priority = htonl(priority); |
253 | dm->anonymity = htonl(anonymity); | 253 | dm->anonymity = htonl(anonymity); |
254 | dm->uid = GNUNET_htonll(0); | 254 | dm->uid = GNUNET_htonll(0); |
255 | dm->expiration = GNUNET_htonll(expiration); | 255 | dm->expiration = GNUNET_TIME_absolute_hton(expiration); |
256 | dm->key = *key; | 256 | dm->key = *key; |
257 | memcpy (&dm[1], data, size); | 257 | memcpy (&dm[1], data, size); |
258 | if (NULL == GNUNET_CLIENT_notify_transmit_ready (h->client, | 258 | if (NULL == GNUNET_CLIENT_notify_transmit_ready (h->client, |