Replaced calls to the custom strindex() and strrindex() functions with the
exactly equivalent and standard strchr() and strrchr() functions instead.
This commit is contained in:
@@ -90,7 +90,7 @@ DoOption(text)
|
||||
char c, *t;
|
||||
|
||||
while( c = *text++ ) {
|
||||
char *strindex();
|
||||
char *strchr();
|
||||
|
||||
t = text;
|
||||
size = txt2int(&t);
|
||||
@@ -100,7 +100,7 @@ DoOption(text)
|
||||
align = txt2int(&t);
|
||||
text = t;
|
||||
}
|
||||
if( !strindex("wilfpS", c) )
|
||||
if( !strchr("wilfpS", c) )
|
||||
error("-V: bad type indicator %c\n", c);
|
||||
if( size )
|
||||
switch( c ) {
|
||||
|
||||
Reference in New Issue
Block a user