From: Emmanuel Grumbach Date: Wed, 27 Jul 2016 17:55:52 +0000 (+0300) Subject: utils: make hex2byte and hex2bin parameter const X-Git-Tag: v4.9~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ad3cc243c7f436a2acee30530adb067f65dfc0c;p=thirdparty%2Fiw.git utils: make hex2byte and hex2bin parameter const Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/util.c b/util.c index dd960e0..96a8b27 100644 --- a/util.c +++ b/util.c @@ -346,7 +346,7 @@ static int hex2num(char digit) return tolower(digit) - 'a' + 10; } -static int hex2byte(char *hex) +static int hex2byte(const char *hex) { int d1, d2; @@ -359,7 +359,7 @@ static int hex2byte(char *hex) return (d1 << 4) | d2; } -static char *hex2bin(char *hex, char *buf) +static char *hex2bin(const char *hex, char *buf) { char *result = buf; int d;