]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/cgroups/cgfs.c
replace deprecated `index` with `strchr`
authorPatrick O'Leary <patrick.oleary@gmail.com>
Wed, 17 Dec 2014 01:47:21 +0000 (19:47 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 25 Jan 2015 04:43:29 +0000 (23:43 -0500)
commit46cd28455f8eedabcccf8fc1955b7199a7467807
treefd394488d7b6189540845c3ec8d538240f8e128c
parent411c497411217948b00d7fdd2797a74fecd72925
replace deprecated `index` with `strchr`

The `index` libc function was removed in POSIX 2008, and `strchr` is a direct
replacement. The bionic (Android) libc has removed `index` when you are
compiling for a 64-bit architecture, such as AArch64.

Signed-off-by: Patrick O'Leary <patrick.oleary@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/bdev.c
src/lxc/cgfs.c
src/lxc/conf.c
src/lxc/confile.c
src/lxc/lsm/apparmor.c
src/lxc/lxc_usernsexec.c
src/lxc/lxccontainer.c
src/tests/attach.c