aboutsummaryrefslogtreecommitdiff
path: root/libnet
diff options
context:
space:
mode:
authorMarvin Borner2021-02-25 20:45:10 +0100
committerMarvin Borner2021-02-25 20:45:10 +0100
commita9710cb73cc9ecadaff241428a39a26935cb5c0a (patch)
tree68f509407bc49a4da43ccadfd9115b9e6f7eb413 /libnet
parent26587adae4f5ec61d03fd7075805a24b29107fe3 (diff)
Applied even more warning flags!
Fixing all the warnings wasn't that easy actually..
Diffstat (limited to 'libnet')
-rw-r--r--libnet/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnet/dns.c b/libnet/dns.c
index 0ca2f99..6b59ac9 100644
--- a/libnet/dns.c
+++ b/libnet/dns.c
@@ -34,7 +34,7 @@ static u32 part_count(const char *name)
static u32 part_len(const char *name, u32 index)
{
- char *data = (char *)name;
+ const char *data = name;
u32 cnt = 0;
for (u32 i = 0; i < strlen(name); i++) {