Remove/add missing prototypes

This commit is contained in:
Willem Toorop 2013-12-03 16:09:26 +01:00
parent cb26dd1a45
commit ab75b89da2
5 changed files with 13 additions and 3 deletions

View File

@ -38,6 +38,7 @@
#include <ctype.h> #include <ctype.h>
#include <ldns/buffer.h> #include <ldns/buffer.h>
#include "types-internal.h" #include "types-internal.h"
#include "util-internal.h"
#include "dict.h" #include "dict.h"
/*---------------------------------------- getdns_dict_find */ /*---------------------------------------- getdns_dict_find */

View File

@ -100,8 +100,6 @@ main()
retregular = getdns_service_sync(contextarg, retregular = getdns_service_sync(contextarg,
charstararg, dictarg, &dictarg); charstararg, dictarg, &dictarg);
getdns_free_sync_request_memory(dictarg);
retregular = getdns_list_get_length(listarg, sizetptrarg); retregular = getdns_list_get_length(listarg, sizetptrarg);
retregular = retregular =
getdns_list_get_data_type(listarg, sizetarg, datatypeptrarg); getdns_list_get_data_type(listarg, sizetarg, datatypeptrarg);

View File

@ -111,7 +111,6 @@ main()
/* Clean up */ /* Clean up */
getdns_context_destroy(this_context); getdns_context_destroy(this_context);
getdns_free_sync_request_memory(this_response);
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} /* main */ } /* main */

View File

@ -34,6 +34,12 @@
#define TSTMSGBUF 80 #define TSTMSGBUF 80
/* Prototypes for functions not part of the API
* TODO: remove these
*/
getdns_return_t getdns_list_add_item(struct getdns_list *list, size_t * index);
getdns_return_t getdns_dict_copy(struct getdns_dict *srcdict, struct getdns_dict **dstdict);
/*---------------------------------------- tst_bindatasetget */ /*---------------------------------------- tst_bindatasetget */
/** /**
* test the bindata get and set routines * test the bindata get and set routines

View File

@ -35,6 +35,12 @@
#define TSTMSGBUF 80 #define TSTMSGBUF 80
#define GETDNS_LIST_BLOCKSZ 10 #define GETDNS_LIST_BLOCKSZ 10
/* Prototypes for functions not part of the API
* TODO: remove these
*/
getdns_return_t getdns_list_add_item(struct getdns_list *list, size_t * index);
/* TODO: might want a separate unit test for getdns_list_copy() - right now the code gets /* TODO: might want a separate unit test for getdns_list_copy() - right now the code gets
covered as a result of other tests */ covered as a result of other tests */