Commit edb1098b by Stéphane Graber

Replace 'index' by 'strchr' for Android build

parent dfaf8628
...@@ -1272,13 +1272,13 @@ static int mount_check_fs( const char *dir, char *fstype ) ...@@ -1272,13 +1272,13 @@ static int mount_check_fs( const char *dir, char *fstype )
if (!f) if (!f)
return 0; return 0;
while (fgets(buf, LINELEN, f)) { while (fgets(buf, LINELEN, f)) {
p = index(buf, ' '); p = strchr(buf, ' ');
if( !p ) if( !p )
continue; continue;
*p = '\0'; *p = '\0';
p2 = p + 1; p2 = p + 1;
p = index(p2, ' '); p = strchr(p2, ' ');
if( !p ) if( !p )
continue; continue;
*p = '\0'; *p = '\0';
...@@ -1289,7 +1289,7 @@ static int mount_check_fs( const char *dir, char *fstype ) ...@@ -1289,7 +1289,7 @@ static int mount_check_fs( const char *dir, char *fstype )
} }
p2 = p + 1; p2 = p + 1;
p = index( p2, ' '); p = strchr( p2, ' ');
if( !p ) if( !p )
continue; continue;
*p = '\0'; *p = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment