summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-26 19:40:07 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-26 19:40:07 +0000
commitfa2f979000874bbd48e5a7a08a387bb5542042f4 (patch)
treebfe4810364d9986979efe7bf24b43eb4d3baddad /cpukit
parent62f48b3594cc80fefedbba02581abe0838dab4b4 (diff)
downloadrtems-fa2f979000874bbd48e5a7a08a387bb5542042f4.tar.bz2
2001-10-26 Victor V. Vengerov <vvv@oktet.ru>
* src/imfs/imfs_load_tar.c: Minor modification so this will compile with gcc-2.95.3 with the arguments "-m5200 -O4".
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libfs/ChangeLog5
-rw-r--r--cpukit/libfs/src/imfs/imfs_load_tar.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/libfs/ChangeLog b/cpukit/libfs/ChangeLog
index 361d8702bf..2d8563c468 100644
--- a/cpukit/libfs/ChangeLog
+++ b/cpukit/libfs/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-26 Victor V. Vengerov <vvv@oktet.ru>
+
+ * src/imfs/imfs_load_tar.c: Minor modification so this will
+ compile with gcc-2.95.3 with the arguments "-m5200 -O4".
+
2001-10-16 Chris Johns <ccj@acm.org>
* imfs/imfs_load_tar.c: Changed the code around to remove an
diff --git a/cpukit/libfs/src/imfs/imfs_load_tar.c b/cpukit/libfs/src/imfs/imfs_load_tar.c
index b74ff884ea..26794f9242 100644
--- a/cpukit/libfs/src/imfs/imfs_load_tar.c
+++ b/cpukit/libfs/src/imfs/imfs_load_tar.c
@@ -220,7 +220,9 @@ octal2ulong(char *octascii, int len)
mult = 1;
for (i=len-1; i>=0; i--)
{
- if ((octascii[i] < '0') || (octascii[i] > '9'))
+ if (octascii[i] < '0')
+ continue;
+ if (octascii[i] > '9')
continue;
num += mult*((unsigned long)(octascii[i] - '0'));