]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: avoid obsolete index()
authorEric Blake <eblake@redhat.com>
Thu, 23 Apr 2015 14:13:53 +0000 (08:13 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 23 Apr 2015 14:15:55 +0000 (08:15 -0600)
commit1268820a632846267b75432dc155779a716e289c
tree75c72d35f34d044cbd1c3cb26ddf60fb51fecaa8
parent236d5bc34db2c58df0fc0bb7601614dec7eda061
build: avoid obsolete index()

Commit 2a530a3e5 is not portable to mingw, which intentionally
avoids declaring the obsolete index().  See also:
https://bugzilla.redhat.com/show_bug.cgi?id=1214605

* src/util/virstring.c (virStringStripControlChars): Use strchr.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virstring.c