From: Adam Dickmeiss Date: Tue, 19 Jul 2005 18:34:16 +0000 (+0000) Subject: Use strchr instead of index X-Git-Tag: ZEBRA.1.3.30~10 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=74a755f2914f83249677afdb89705119f6a9a343;p=idzebra-moved-to-github.git Use strchr instead of index --- diff --git a/data1/d1_absyn.c b/data1/d1_absyn.c index 4ab6d1a..823dab9 100644 --- a/data1/d1_absyn.c +++ b/data1/d1_absyn.c @@ -1,4 +1,4 @@ -/* $Id: d1_absyn.c,v 1.9.2.3 2005-06-29 16:52:50 adam Exp $ +/* $Id: d1_absyn.c,v 1.9.2.4 2005-07-19 18:34:16 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -467,7 +467,7 @@ static int melm2xpath(char *melm, char *buf) char *field = melm; char *subfield; char *fieldtype; - if ((dollar = index(melm, '$'))) { + if ((dollar = strchr(melm, '$'))) { *dollar = '\0'; subfield = ++dollar; } else