mirror of
https://github.com/deadw00d/AROS.git
synced 2025-11-23 20:21:25 +00:00
reduce the scope of all instances of digit.
This commit is contained in:
@ -462,11 +462,10 @@ ULONG GetL(char* string)
|
||||
{
|
||||
ULONG ret = 0;
|
||||
int i;
|
||||
char digit;
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
digit = toupper(string[i]);
|
||||
char digit = toupper(string[i]);
|
||||
|
||||
if (!isxdigit(digit))
|
||||
break;
|
||||
@ -485,11 +484,10 @@ UWORD GetW(char* string)
|
||||
{
|
||||
UWORD ret = 0;
|
||||
int i;
|
||||
char digit;
|
||||
|
||||
for(i = 0; i < 4; i++)
|
||||
{
|
||||
digit = toupper(string[i]);
|
||||
char digit = toupper(string[i]);
|
||||
|
||||
if (!isxdigit(digit))
|
||||
break;
|
||||
@ -508,11 +506,10 @@ UBYTE GetB(char* string)
|
||||
{
|
||||
UBYTE ret = 0;
|
||||
int i;
|
||||
char digit;
|
||||
|
||||
|
||||
for(i = 0; i < 2; i++)
|
||||
{
|
||||
digit = toupper(string[i]);
|
||||
char digit = toupper(string[i]);
|
||||
|
||||
if (!isxdigit(digit))
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user