summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/stringto/stringto_template.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-12-01 22:16:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-12-01 22:16:10 +0000
commit2c6a3e7e2eadef996b918992d36e9855e8dc5e9e (patch)
treee2a471a252c09faa5d2a3bb6e8141bdc7fbca758 /cpukit/libmisc/stringto/stringto_template.h
parent2009-12-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-2c6a3e7e2eadef996b918992d36e9855e8dc5e9e.tar.bz2
2009-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmisc/stringto/stringto.h, libmisc/stringto/stringto_template.h: Tidy up as part of adding new test.
Diffstat (limited to 'cpukit/libmisc/stringto/stringto_template.h')
-rw-r--r--cpukit/libmisc/stringto/stringto_template.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/libmisc/stringto/stringto_template.h b/cpukit/libmisc/stringto/stringto_template.h
index a1503e0d87..4972d5fbac 100644
--- a/cpukit/libmisc/stringto/stringto_template.h
+++ b/cpukit/libmisc/stringto/stringto_template.h
@@ -104,9 +104,16 @@ rtems_status_code STRING_TO_NAME (
if ( end == s )
return RTEMS_NOT_DEFINED;
+ /*
+ * In theory, we should check this but newlib never returns anything
+ * but range errors. So this is unreachable code based upon the newlib
+ * implementation of strXXX methods as of 1 December 2009. --joel
+ */
+ #if 0
/* there was a conversion error */
if ( (result == ZERO) && errno )
return RTEMS_INVALID_NUMBER;
+ #endif
#ifdef STRING_TO_MAX
/* there was an overflow */