forked from Imagelibrary/rtems
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".
This commit is contained in:
@@ -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>
|
2001-10-16 Chris Johns <ccj@acm.org>
|
||||||
|
|
||||||
* imfs/imfs_load_tar.c: Changed the code around to remove an
|
* imfs/imfs_load_tar.c: Changed the code around to remove an
|
||||||
|
|||||||
@@ -220,7 +220,9 @@ octal2ulong(char *octascii, int len)
|
|||||||
mult = 1;
|
mult = 1;
|
||||||
for (i=len-1; i>=0; i--)
|
for (i=len-1; i>=0; i--)
|
||||||
{
|
{
|
||||||
if ((octascii[i] < '0') || (octascii[i] > '9'))
|
if (octascii[i] < '0')
|
||||||
|
continue;
|
||||||
|
if (octascii[i] > '9')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
num += mult*((unsigned long)(octascii[i] - '0'));
|
num += mult*((unsigned long)(octascii[i] - '0'));
|
||||||
|
|||||||
@@ -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>
|
2001-10-16 Chris Johns <ccj@acm.org>
|
||||||
|
|
||||||
* imfs/imfs_load_tar.c: Changed the code around to remove an
|
* imfs/imfs_load_tar.c: Changed the code around to remove an
|
||||||
|
|||||||
@@ -220,7 +220,9 @@ octal2ulong(char *octascii, int len)
|
|||||||
mult = 1;
|
mult = 1;
|
||||||
for (i=len-1; i>=0; i--)
|
for (i=len-1; i>=0; i--)
|
||||||
{
|
{
|
||||||
if ((octascii[i] < '0') || (octascii[i] > '9'))
|
if (octascii[i] < '0')
|
||||||
|
continue;
|
||||||
|
if (octascii[i] > '9')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
num += mult*((unsigned long)(octascii[i] - '0'));
|
num += mult*((unsigned long)(octascii[i] - '0'));
|
||||||
|
|||||||
@@ -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>
|
2001-10-16 Chris Johns <ccj@acm.org>
|
||||||
|
|
||||||
* imfs/imfs_load_tar.c: Changed the code around to remove an
|
* imfs/imfs_load_tar.c: Changed the code around to remove an
|
||||||
|
|||||||
@@ -220,7 +220,9 @@ octal2ulong(char *octascii, int len)
|
|||||||
mult = 1;
|
mult = 1;
|
||||||
for (i=len-1; i>=0; i--)
|
for (i=len-1; i>=0; i--)
|
||||||
{
|
{
|
||||||
if ((octascii[i] < '0') || (octascii[i] > '9'))
|
if (octascii[i] < '0')
|
||||||
|
continue;
|
||||||
|
if (octascii[i] > '9')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
num += mult*((unsigned long)(octascii[i] - '0'));
|
num += mult*((unsigned long)(octascii[i] - '0'));
|
||||||
|
|||||||
Reference in New Issue
Block a user