aboutsummaryrefslogtreecommitdiff
path: root/libnet/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnet/dns.c')
-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++) {