Skip to content

Commit

Permalink
illmnr-query: Add const qualifier to name variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tklauser committed Jan 13, 2017
1 parent 0028136 commit edabb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmnr-query.c
Original file line number Diff line number Diff line change
Expand Up @@ -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? */
Expand Down

0 comments on commit edabb87

Please sign in to comment.