]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
utils: make hex2byte and hex2bin parameter const
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 27 Jul 2016 17:55:52 +0000 (20:55 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Aug 2016 08:22:39 +0000 (10:22 +0200)
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
util.c

diff --git a/util.c b/util.c
index dd960e0d27e70045a04c9e9f48aa1e490ad6b376..96a8b270d60877115fed2374464f2bcb8144ee44 100644 (file)
--- 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;