mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [mynewt-core] branch master updated: oic; fix compiler warning when using isalpha() with newlib.
Date Sat, 23 Sep 2017 00:08:46 GMT
This is an automated email from the ASF dual-hosted git repository.

marko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new d8aa7d9  oic; fix compiler warning when using isalpha() with newlib.
d8aa7d9 is described below

commit d8aa7d92fe25991313a3af1ffcbcd3360e84cb7e
Author: Marko Kiiskila <marko@runtime.io>
AuthorDate: Fri Sep 22 17:07:19 2017 -0700

    oic; fix compiler warning when using isalpha() with newlib.
---
 net/oic/src/api/oc_uuid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/oic/src/api/oc_uuid.c b/net/oic/src/api/oc_uuid.c
index 164e5d2..403a447 100644
--- a/net/oic/src/api/oc_uuid.c
+++ b/net/oic/src/api/oc_uuid.c
@@ -34,7 +34,7 @@ oc_str_to_uuid(const char *str, oc_uuid_t *uuid)
   for (i = 0; i < strlen(str); i++) {
     if (str[i] == '-')
       continue;
-    else if (isalpha(str[i])) {
+    else if (isalpha((int)str[i])) {
       switch (str[i]) {
       case 65:
       case 97:

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" <commits@mynewt.apache.org>'].

Mime
View raw message