From: Stéphane Graber Date: Fri, 18 Nov 2016 02:10:03 +0000 (-0500) Subject: Replace 'index' by 'strchr' for Android build X-Git-Tag: lxc-1.0.9~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edb1098be794bc14a9317b110e7dbb76532f5c55;p=thirdparty%2Flxc.git Replace 'index' by 'strchr' for Android build Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 605e1f91b..b5d94fe68 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -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';