]> git.ipfire.org Git - thirdparty/lxc.git/commit
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>
Fri, 30 Jan 2015 09:03:25 +0000 (10:03 +0100)
commit896003e2eb3fc5940b367fd3653f9359b1821651
treea32068465e505e7c41893a9f00c64a1531060a05
parent7a5448c37921759d2995a5475091d004fd5f06a1
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