From edb1098be794bc14a9317b110e7dbb76532f5c55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Thu, 17 Nov 2016 21:10:03 -0500 Subject: [PATCH] Replace 'index' by 'strchr' for Android build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/lxc/conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'; -- 2.47.3