aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-07-03 05:30:15 +0000
committerLev Walkin <vlm@lionet.info>2005-07-03 05:30:15 +0000
commitb0f3db69c46b29b17e3e9a4fef0029fa146ffaf9 (patch)
tree2762ce87bad541a9198949a2514941b75fcbba0c
parent7b3713a836a6a13840b1a1b0c9f4d965e3431fa6 (diff)
removed wild guessed gcc warning
-rw-r--r--skeletons/OCTET_STRING.c8
1 files 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);
}