diff options
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 49b9db859..6fb1ebf1b 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -316,7 +316,7 @@ delete_expired (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | |||
316 | * GNUNET_NO to delete the item and continue (if supported) | 316 | * GNUNET_NO to delete the item and continue (if supported) |
317 | */ | 317 | */ |
318 | static int | 318 | static int |
319 | expired_processor (void *cls, const GNUNET_HashCode * key, uint32_t size, | 319 | expired_processor (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
320 | const void *data, enum GNUNET_BLOCK_Type type, | 320 | const void *data, enum GNUNET_BLOCK_Type type, |
321 | uint32_t priority, uint32_t anonymity, | 321 | uint32_t priority, uint32_t anonymity, |
322 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) | 322 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) |
@@ -394,7 +394,7 @@ delete_expired (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
394 | * GNUNET_NO to delete the item and continue (if supported) | 394 | * GNUNET_NO to delete the item and continue (if supported) |
395 | */ | 395 | */ |
396 | static int | 396 | static int |
397 | quota_processor (void *cls, const GNUNET_HashCode * key, uint32_t size, | 397 | quota_processor (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
398 | const void *data, enum GNUNET_BLOCK_Type type, | 398 | const void *data, enum GNUNET_BLOCK_Type type, |
399 | uint32_t priority, uint32_t anonymity, | 399 | uint32_t priority, uint32_t anonymity, |
400 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) | 400 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) |
@@ -581,7 +581,7 @@ transmit_status (struct GNUNET_SERVER_Client *client, int code, const char *msg) | |||
581 | * GNUNET_NO to delete the item and continue (if supported) | 581 | * GNUNET_NO to delete the item and continue (if supported) |
582 | */ | 582 | */ |
583 | static int | 583 | static int |
584 | transmit_item (void *cls, const GNUNET_HashCode * key, uint32_t size, | 584 | transmit_item (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
585 | const void *data, enum GNUNET_BLOCK_Type type, uint32_t priority, | 585 | const void *data, enum GNUNET_BLOCK_Type type, uint32_t priority, |
586 | uint32_t anonymity, struct GNUNET_TIME_Absolute expiration, | 586 | uint32_t anonymity, struct GNUNET_TIME_Absolute expiration, |
587 | uint64_t uid) | 587 | uint64_t uid) |
@@ -871,7 +871,7 @@ execute_put (struct GNUNET_SERVER_Client *client, const struct DataMessage *dm) | |||
871 | * GNUNET_NO to delete the item | 871 | * GNUNET_NO to delete the item |
872 | */ | 872 | */ |
873 | static int | 873 | static int |
874 | check_present (void *cls, const GNUNET_HashCode * key, uint32_t size, | 874 | check_present (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
875 | const void *data, enum GNUNET_BLOCK_Type type, uint32_t priority, | 875 | const void *data, enum GNUNET_BLOCK_Type type, uint32_t priority, |
876 | uint32_t anonymity, struct GNUNET_TIME_Absolute expiration, | 876 | uint32_t anonymity, struct GNUNET_TIME_Absolute expiration, |
877 | uint64_t uid) | 877 | uint64_t uid) |
@@ -930,7 +930,7 @@ handle_put (void *cls, struct GNUNET_SERVER_Client *client, | |||
930 | int rid; | 930 | int rid; |
931 | struct ReservationList *pos; | 931 | struct ReservationList *pos; |
932 | struct PutContext *pc; | 932 | struct PutContext *pc; |
933 | GNUNET_HashCode vhash; | 933 | struct GNUNET_HashCode vhash; |
934 | uint32_t size; | 934 | uint32_t size; |
935 | 935 | ||
936 | if ((dm == NULL) || (ntohl (dm->type) == 0)) | 936 | if ((dm == NULL) || (ntohl (dm->type) == 0)) |
@@ -993,7 +993,7 @@ handle_get (void *cls, struct GNUNET_SERVER_Client *client, | |||
993 | 993 | ||
994 | size = ntohs (message->size); | 994 | size = ntohs (message->size); |
995 | if ((size != sizeof (struct GetMessage)) && | 995 | if ((size != sizeof (struct GetMessage)) && |
996 | (size != sizeof (struct GetMessage) - sizeof (GNUNET_HashCode))) | 996 | (size != sizeof (struct GetMessage) - sizeof (struct GNUNET_HashCode))) |
997 | { | 997 | { |
998 | GNUNET_break (0); | 998 | GNUNET_break (0); |
999 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 999 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
@@ -1120,7 +1120,7 @@ handle_get_zero_anonymity (void *cls, struct GNUNET_SERVER_Client *client, | |||
1120 | * in to be deleted (by returning GNUNET_NO). | 1120 | * in to be deleted (by returning GNUNET_NO). |
1121 | */ | 1121 | */ |
1122 | static int | 1122 | static int |
1123 | remove_callback (void *cls, const GNUNET_HashCode * key, uint32_t size, | 1123 | remove_callback (void *cls, const struct GNUNET_HashCode * key, uint32_t size, |
1124 | const void *data, enum GNUNET_BLOCK_Type type, | 1124 | const void *data, enum GNUNET_BLOCK_Type type, |
1125 | uint32_t priority, uint32_t anonymity, | 1125 | uint32_t priority, uint32_t anonymity, |
1126 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) | 1126 | struct GNUNET_TIME_Absolute expiration, uint64_t uid) |
@@ -1160,7 +1160,7 @@ handle_remove (void *cls, struct GNUNET_SERVER_Client *client, | |||
1160 | const struct GNUNET_MessageHeader *message) | 1160 | const struct GNUNET_MessageHeader *message) |
1161 | { | 1161 | { |
1162 | const struct DataMessage *dm = check_data (message); | 1162 | const struct DataMessage *dm = check_data (message); |
1163 | GNUNET_HashCode vhash; | 1163 | struct GNUNET_HashCode vhash; |
1164 | 1164 | ||
1165 | if (dm == NULL) | 1165 | if (dm == NULL) |
1166 | { | 1166 | { |
@@ -1428,7 +1428,7 @@ cleanup_reservations (void *cls, struct GNUNET_SERVER_Client *client) | |||
1428 | */ | 1428 | */ |
1429 | static void | 1429 | static void |
1430 | add_key_to_bloomfilter (void *cls, | 1430 | add_key_to_bloomfilter (void *cls, |
1431 | const GNUNET_HashCode *key, | 1431 | const struct GNUNET_HashCode *key, |
1432 | unsigned int count) | 1432 | unsigned int count) |
1433 | { | 1433 | { |
1434 | struct GNUNET_CONTAINER_BloomFilter *bf = cls; | 1434 | struct GNUNET_CONTAINER_BloomFilter *bf = cls; |