diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2017-02-03 13:01:00 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2017-02-03 13:01:00 +0000 |
commit | c6342fe2e90510d8d2296423f2ca92818a7b3d18 (patch) | |
tree | 0cc9064980c804a7bf5cc6d96c9249950c7e56a9 /examples/ldns-testpkts.c | |
parent | 65be028f32ed37dce84f6328d4a7172132c8c224 (diff) |
Notes
Diffstat (limited to 'examples/ldns-testpkts.c')
-rw-r--r-- | examples/ldns-testpkts.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/ldns-testpkts.c b/examples/ldns-testpkts.c index ed26285c1f23..cc339790df3c 100644 --- a/examples/ldns-testpkts.c +++ b/examples/ldns-testpkts.c @@ -31,12 +31,8 @@ struct sockaddr_storage; /** string to show in warnings and errors */ static const char* prog_name = "ldns-testpkts"; -#ifndef UTIL_LOG_H -/** verbosity definition for compat */ -enum verbosity_value { NO_VERBOSE=0 }; -#endif /** logging routine, provided by caller */ -void verbose(enum verbosity_value lvl, const char* msg, ...) ATTR_FORMAT(printf, 2, 3); +void verbose(int lvl, const char* msg, ...) ATTR_FORMAT(printf, 2, 3); /** print error and exit */ static void error(const char* msg, ...) @@ -929,7 +925,7 @@ handle_query(uint8_t* inbuf, ssize_t inlen, struct entry* entries, int* count, } /** delete the list of reply packets */ -void delete_replylist(struct reply_packet* replist) +static void delete_replylist(struct reply_packet* replist) { struct reply_packet *p=replist, *np; while(p) { |