From: Rahul Jain <rahul.jain@samsung.com>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org,
Amit Khatri <amit.khatri@samsung.com>,
Rahul Jain <rahul.jain@samsung.com>
Subject: [PATCH 2/2]iw: UNSPECIFIED_CHAR_IN_COND : Fix
Date: Thu, 26 Nov 2015 14:41:20 +0530 [thread overview]
Message-ID: <1448529080-710-1-git-send-email-rahul.jain@samsung.com> (raw)
From: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
---
util.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/util.c b/util.c
index 8fd14bd..7edc830 100644
--- a/util.c
+++ b/util.c
@@ -330,11 +330,13 @@ void print_ssid_escaped(const uint8_t len, const uint8_t *data)
static int hex2num(char digit)
{
+ unsigned char temp;
+ temp = digit;
if (!isxdigit(digit))
return -1;
if (isdigit(digit))
return digit - '0';
- return tolower(digit) - 'a' + 10;
+ return tolower(temp) - 'a' + 10;
}
static int hex2byte(char *hex)
--
1.9.1
next reply other threads:[~2015-11-26 9:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 9:11 Rahul Jain [this message]
2015-11-26 9:36 ` [PATCH 2/2]iw: UNSPECIFIED_CHAR_IN_COND : Fix Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1448529080-710-1-git-send-email-rahul.jain@samsung.com \
--to=rahul.jain@samsung.com \
--cc=amit.khatri@samsung.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).