[Lcdproc] [PATCH] use strchr() instead of index() in machine_Linux.c

FoX foxcore@gmail.com
Sun Dec 31 14:23:01 2006


------=_Part_158271_4131763.1167574926499
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

The index() function is deprecated and requires #include <strings.h>.
clients/lcdproc/machine_Linux.c don't include strings.h and uses index().
The patch fix this by replacing index() with strchr().
BTW it also fix the cross-compilation with the geexbox toolchain.

-- 
Guillaume LECERF
GeeXboX developer

------=_Part_158271_4131763.1167574926499
Content-Type: text/plain; name="10_index.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="10_index.diff"
X-Attachment-Id: f_ewdjxb8r

LS0tIGxjZHByb2MtMC41LjEub3JpZy9jbGllbnRzL2xjZHByb2MvbWFjaGluZV9MaW51eC5jCTIw
MDYtMTItMzEgMDI6MTg6NDcuMDAwMDAwMDAwICswMTAwCisrKyBsY2Rwcm9jLTAuNS4xL2NsaWVu
dHMvbGNkcHJvYy9tYWNoaW5lX0xpbnV4LmMJMjAwNi0xMi0zMSAwMjoxOTowMC4wMDAwMDAwMDAg
KzAxMDAKQEAgLTM4OCw3ICszODgsNyBAQAogCiAJd2hpbGUgKChwcm9jZGlyID0gcmVhZGRpcihw
cm9jKSkpCiAJewotCQlpZiAoIWluZGV4KCIxMjM0NTY3ODkwIiwgcHJvY2Rpci0+ZF9uYW1lWzBd
KSkKKwkJaWYgKCFzdHJjaHIoIjEyMzQ1Njc4OTAiLCBwcm9jZGlyLT5kX25hbWVbMF0pKQogCQkJ
Y29udGludWU7CiAKIAkJc3ByaW50ZihidWYsICIvcHJvYy8lcy9zdGF0dXMiLCBwcm9jZGlyLT5k
X25hbWUpOwo=
------=_Part_158271_4131763.1167574926499--