]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Replace 'index' by 'strchr' for Android build
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 18 Nov 2016 02:10:03 +0000 (21:10 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 18 Nov 2016 02:10:03 +0000 (21:10 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c

index 605e1f91b8dffda353918546f73ba87354cfe94c..b5d94fe68619e101c2bbb49cfee54b2691f9aac2 100644 (file)
@@ -1272,13 +1272,13 @@ static int mount_check_fs( const char *dir, char *fstype )
        if (!f)
                return 0;
        while (fgets(buf, LINELEN, f)) {
-               p = index(buf, ' ');
+               p = strchr(buf, ' ');
                if( !p )
                        continue;
                *p = '\0';
                p2 = p + 1;
 
-               p = index(p2, ' ');
+               p = strchr(p2, ' ');
                if( !p )
                        continue;
                *p = '\0';
@@ -1289,7 +1289,7 @@ static int mount_check_fs( const char *dir, char *fstype )
                }
 
                p2 = p + 1;
-               p = index( p2, ' ');
+               p = strchr( p2, ' ');
                if( !p )
                        continue;
                *p = '\0';