From b0f3db69c46b29b17e3e9a4fef0029fa146ffaf9 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Sun, 3 Jul 2005 05:30:15 +0000 Subject: removed wild guessed gcc warning --- skeletons/OCTET_STRING.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c index 19ae95db..58184559 100644 --- a/skeletons/OCTET_STRING.c +++ b/skeletons/OCTET_STRING.c @@ -927,7 +927,11 @@ OS__strtoent(int base, const char *buf, const char *end, int32_t *ret_value) { for(p = buf; p < end; p++) { int ch = *p; - if((val * base + base) < 0) return -1; /* Strange huge value */ + + /* Strange huge value */ + if((val * base + base) < 0) + return -1; + switch(ch) { case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ @@ -949,7 +953,7 @@ OS__strtoent(int base, const char *buf, const char *end, int32_t *ret_value) { } } - /* Do not return value. It's an error we're talking about here. */ + *ret_value = -1; return (p - buf); } -- cgit v1.2.3