summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorWillem Toorop <willem@NLnetLabs.nl>2013-03-18 15:25:24 +0100
committerWillem Toorop <willem@NLnetLabs.nl>2013-03-18 15:25:24 +0100
commit430329fd80f266bf59d5503a8fd6f79a91b4f468 (patch)
treefe8d4708b4d253c6b7fad9c75353a6d90a01d2a7 /rr.c
parent6c10b09342683f74962666a83f4844aa822b3490 (diff)
downloadldns-430329fd80f266bf59d5503a8fd6f79a91b4f468.tar.gz
- Make lint happy
- Miscellaneous prototype fixes. Thanks Dag-Erling Smørgrav. - README now shows preferred way to configure for examples and drill.
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/rr.c b/rr.c
index a3f3ce87..33d1d53d 100644
--- a/rr.c
+++ b/rr.c
@@ -936,7 +936,7 @@ ldns_rr_list_rr(const ldns_rr_list *rr_list, size_t nr)
}
ldns_rr_list *
-ldns_rr_list_new()
+ldns_rr_list_new(void)
{
ldns_rr_list *rr_list = LDNS_MALLOC(ldns_rr_list);
if(!rr_list) return NULL;
@@ -1395,25 +1395,7 @@ ldns_rr_list_clone(const ldns_rr_list *rrlist)
}
-int
-qsort_rr_compare(const void *a, const void *b)
-{
- const ldns_rr *rr1 = * (const ldns_rr **) a;
- const ldns_rr *rr2 = * (const ldns_rr **) b;
-
- if (rr1 == NULL && rr2 == NULL) {
- return 0;
- }
- if (rr1 == NULL) {
- return -1;
- }
- if (rr2 == NULL) {
- return 1;
- }
- return ldns_rr_compare(rr1, rr2);
-}
-
-int
+static int
qsort_schwartz_rr_compare(const void *a, const void *b)
{
int result = 0;