From 9d97a467ca8146fb8b9d242a22e4a8cd2ccaadb7 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 21 Nov 2018 21:03:36 +0100 Subject: [PATCH] netbiosns_name_decode: Take CONST char* as first argument (cherry picked from commit 10e0130a4aaf59d5e2377f77c5d7123bb8e38146) --- src/apps/netbiosns/netbiosns.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/netbiosns/netbiosns.c b/src/apps/netbiosns/netbiosns.c index c94a7791..479c375b 100644 --- a/src/apps/netbiosns/netbiosns.c +++ b/src/apps/netbiosns/netbiosns.c @@ -240,12 +240,12 @@ static struct udp_pcb *netbiosns_pcb; /** Decode a NetBIOS name (from packet to string) */ static int -netbiosns_name_decode(char *name_enc, char *name_dec, int name_dec_len) +netbiosns_name_decode(const char *name_enc, char *name_dec, int name_dec_len) { - char *pname; - char cname; - char cnbname; - int idx = 0; + const char *pname; + char cname; + char cnbname; + int idx = 0; LWIP_UNUSED_ARG(name_dec_len);