From edabb87e2a9b4124cfe95eb14afe31a467cae891 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 13 Jan 2017 14:29:21 +0100 Subject: [PATCH] illmnr-query: Add const qualifier to name variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following GCC warning: llmnr-query.c:345:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Tobias Klauser --- llmnr-query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmnr-query.c b/llmnr-query.c index 7e72836..d2fda6b 100644 --- a/llmnr-query.c +++ b/llmnr-query.c @@ -333,7 +333,7 @@ int main(int argc, char **argv) char addr[INET6_ADDRSTRLEN]; uint16_t type, clss, addr_size; uint32_t ttl; - char *name; + const char *name; int af; /* compression? */