aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-10-23 15:05:19 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-10-23 15:05:19 +0900
commit91a82ed4aba961f8767ce20ecd20df6d394c1c10 (patch)
treead41994dfe8d1feb9e74fd6915c4f8a1a7aab2d4 /src/namestore
parentbb81464ede13b1cba93cd031de466bbc8c18f04f (diff)
downloadgnunet-91a82ed4aba961f8767ce20ecd20df6d394c1c10.tar.gz
gnunet-91a82ed4aba961f8767ce20ecd20df6d394c1c10.zip
-unused functions
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/namestore_api.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index 5c6bf73eb..41c1fcc73 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -363,31 +363,6 @@ check_rd (size_t rd_len, const void *rd_buf, unsigned int rd_count)
363 * 363 *
364 * @param cls 364 * @param cls
365 * @param msg the message we received 365 * @param msg the message we received
366 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
367 */
368static int
369check_record_store_response (void *cls,
370 const struct RecordStoreResponseMessage *msg)
371{
372 size_t msg_len;
373
374 (void) cls;
375 msg_len = ntohs (msg->gns_header.header.size);
376 if (msg_len != sizeof(struct RecordStoreResponseMessage))
377 {
378 GNUNET_break (0);
379 return GNUNET_SYSERR;
380 }
381 return GNUNET_OK;
382}
383
384
385/**
386 * Handle an incoming message of type
387 * #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE
388 *
389 * @param cls
390 * @param msg the message we received
391 */ 366 */
392static void 367static void
393handle_record_store_response (void *cls, 368handle_record_store_response (void *cls,
@@ -671,38 +646,6 @@ handle_record_result_end (void *cls, const struct GNUNET_NAMESTORE_Header *msg)
671 free_ze (ze); 646 free_ze (ze);
672} 647}
673 648
674/**
675 * Handle an incoming message of type
676 * #GNUNET_MESSAGE_TYPE_NAMESTORE_TX_CONTROL_RESULT.
677 *
678 * @param qe the respective entry in the message queue
679 * @param msg the message we received
680 * @return #GNUNET_OK on success, #GNUNET_SYSERR if message malformed
681 */
682static int
683check_tx_control_result (void *cls,
684 const struct TxControlResultMessage *msg)
685{
686 const char *err_tmp;
687 size_t err_len;
688
689 (void) cls;
690 err_len = ntohs (msg->gns_header.header.size)
691 - sizeof (struct TxControlResultMessage);
692 if ((GNUNET_EC_NONE == ntohs (msg->ec)) && (err_len > 0))
693 {
694 GNUNET_break (0);
695 return GNUNET_SYSERR;
696 }
697 err_tmp = (const char *) &msg[1];
698 if ((err_len > 0) && ('\0' != err_tmp[err_len - 1]))
699 {
700 GNUNET_break (0);
701 return GNUNET_SYSERR;
702 }
703 return GNUNET_OK;
704}
705
706static void 649static void
707handle_tx_control_result (void *cls, 650handle_tx_control_result (void *cls,
708 const struct TxControlResultMessage *msg) 651 const struct TxControlResultMessage *msg)