string: remove memscan()
authorJan Beulich <jbeulich@suse.com>
Wed, 13 Mar 2019 10:25:04 +0000 (11:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 13 Mar 2019 10:25:04 +0000 (11:25 +0100)
commitc07186ca6665a59d8461140218cb8b53df4133fc
tree53ebadeca3833f833af15589ce7061c417d59d89
parent592b5fcb984487f1929d28e1f4eb49d25c2c719d
string: remove memscan()

It has no users, so rather than fixing its use of types (first and
foremost c would need to be cast to unsigned char in the comparison
expression) drop it altogether. memchr() ought to be fine for all
purposes.

Take the opportunity and also do some stylistic adjustments to its
surviving sibling function memchr().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/string.c
xen/include/xen/string.h