From: Gwanglim Lee Date: Thu, 20 Apr 2017 12:45:33 +0000 (+0900) Subject: e_util: changed converting function to strtoul for unsigned long int type X-Git-Tag: submit/tizen/20170421.061836~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4933b366f6f4ccffb7d69d8a52b70b8051d2e781;p=platform%2Fupstream%2Fenlightenment.git e_util: changed converting function to strtoul for unsigned long int type Change-Id: I1df52f33f66ea2e434356c1a116f3367b70ec624 --- diff --git a/src/bin/e_info_client.c b/src/bin/e_info_client.c index e53f4d04b3..28875a2b4f 100644 --- a/src/bin/e_info_client.c +++ b/src/bin/e_info_client.c @@ -91,7 +91,7 @@ _util_string_to_uint(const char *str, unsigned int *num, int base) EINA_SAFETY_ON_NULL_RETURN_VAL(str, EINA_FALSE); EINA_SAFETY_ON_NULL_RETURN_VAL(num, EINA_FALSE); - const unsigned long int ul = strtol(str, &end, base); + const unsigned long int ul = strtoul(str, &end, base); errsv = errno; EINA_SAFETY_ON_TRUE_RETURN_VAL((end == str), EINA_FALSE); /* given string is not a decimal number */ diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c index a2500a5adf..9e9bbe07a6 100644 --- a/src/bin/e_utils.c +++ b/src/bin/e_utils.c @@ -984,7 +984,7 @@ e_util_string_to_uint(const char *str, unsigned int *num, int base) EINA_SAFETY_ON_NULL_RETURN_VAL(str, EINA_FALSE); EINA_SAFETY_ON_NULL_RETURN_VAL(num, EINA_FALSE); - const unsigned long int ul = strtol(str, &end, base); + const unsigned long int ul = strtoul(str, &end, base); errsv = errno; EINA_SAFETY_ON_TRUE_RETURN_VAL((end == str), EINA_FALSE); /* given string is not a decimal number */