[lxc-devel] [lxc/lxc] 46cd28: replace deprecated `index` with `strchr`

GitHub noreply at github.com
Sun Jan 25 04:44:09 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 46cd28455f8eedabcccf8fc1955b7199a7467807
      https://github.com/lxc/lxc/commit/46cd28455f8eedabcccf8fc1955b7199a7467807
  Author: Patrick O'Leary <patrick.oleary at gmail.com>
  Date:   2015-01-24 (Sat, 24 Jan 2015)

  Changed paths:
    M src/lxc/bdev.c
    M src/lxc/cgfs.c
    M src/lxc/conf.c
    M src/lxc/confile.c
    M src/lxc/lsm/apparmor.c
    M src/lxc/lxc_usernsexec.c
    M src/lxc/lxccontainer.c
    M src/tests/attach.c

  Log Message:
  -----------
  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 at gmail.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list