summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-13 14:29:21 +0100
committerTobias Klauser <tklauser@distanz.ch>2017-01-13 14:31:54 +0100
commitedabb87e2a9b4124cfe95eb14afe31a467cae891 (patch)
treeff713f726246a4dede7bea83ac9115aee70c30ea
parent0028136821365ba0d29332900e8801d94151abc3 (diff)
illmnr-query: Add const qualifier to name variable
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 <tklauser@distanz.ch>
-rw-r--r--llmnr-query.c2
1 files changed, 1 insertions, 1 deletions
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? */