From 9a5ad349a1f6b952ae68f25d8a1d62b7c2633cff Mon Sep 17 00:00:00 2001 From: batt Date: Sun, 3 Apr 2011 13:21:31 +0000 Subject: [PATCH] Silence new compiler warnings. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4831 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/net/nmeap/src/nmeap01.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bertos/net/nmeap/src/nmeap01.c b/bertos/net/nmeap/src/nmeap01.c index 8d217f64..e09edc96 100644 --- a/bertos/net/nmeap/src/nmeap01.c +++ b/bertos/net/nmeap/src/nmeap01.c @@ -389,7 +389,7 @@ int nmeap_parse(nmeap_context_t *context,char ch) case 1: /* allow numbers even though it isn't usually done */ /* a proprietary id might have a numeral */ - if (isalnum(ch)) { + if (isalnum((unsigned char)ch)) { /* store name separately */ context->input_name[context->input_count - 2] = ch; /* checksum */ @@ -428,7 +428,7 @@ int nmeap_parse(nmeap_context_t *context,char ch) /* LOOKING FOR FIRST CHECKSUM CHARACTER */ case 3: /* must be upper case hex digit */ - if (isxdigit(ch) && (ch <= 'F')) { + if (isxdigit((unsigned char)ch) && (ch <= 'F')) { /* got first checksum byte */ context->input_state = 4; context->icks = HEXTOBIN(ch) << 4; @@ -443,7 +443,7 @@ int nmeap_parse(nmeap_context_t *context,char ch) /* LOOKING FOR SECOND CHECKSUM CHARACTER */ case 4: /* must be upper case hex digit */ - if (isxdigit(ch) && (ch <= 'F')) { + if (isxdigit((unsigned char)ch) && (ch <= 'F')) { /* got second checksum byte */ context->input_state = 5; context->icks += HEXTOBIN(ch); -- 2.25.1