]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Update declaration for function with no arguments 216/head
authorEd Maste <emaste@FreeBSD.org>
Thu, 25 May 2023 14:29:10 +0000 (10:29 -0400)
committerEd Maste <emaste@FreeBSD.org>
Thu, 25 May 2023 14:29:10 +0000 (10:29 -0400)
With -Wstrict-prototypes clang warns that "a function declaration
without a prototype is deprecated in all versions of C."

edns.c

diff --git a/edns.c b/edns.c
index 3d002d67ed8c8cd8375756be4334b73220501ee2..aa4a3f29015ab5c54f7aee8326e6b17126ce4e83 100644 (file)
--- a/edns.c
+++ b/edns.c
@@ -167,7 +167,7 @@ ldns_edns_free(ldns_edns_option *edns)
 }
 
 ldns_edns_option_list*
-ldns_edns_option_list_new()
+ldns_edns_option_list_new(void)
 {
        ldns_edns_option_list *option_list = LDNS_MALLOC(ldns_edns_option_list);
        if(!option_list) {