From 62b58a361fccec935d7940fb7ab86508ccdceb00 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 3 Sep 2014 16:55:59 +0200 Subject: mausezahn: Fix non-ANSI function declarations ANSI C doesn't allow empty parameter list, thus use void where appropriate. This fixes the corresponding sparse warning. Signed-off-by: Tobias Klauser --- staging/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'staging/dns.c') diff --git a/staging/dns.c b/staging/dns.c index 5f9203c..bfa61d8 100644 --- a/staging/dns.c +++ b/staging/dns.c @@ -96,7 +96,7 @@ int dns_get_answer (char* argval); // Note: I do NOT use libnet here (had problems with bugs there...) -int create_dns_packet () +int create_dns_packet(void) { char *token, *tokenptr, argval[MAX_PAYLOAD_SIZE]; -- cgit v1.2.3-54-g00ecf