aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-11-01 09:40:23 +0000
committerGuy Harris <guy@alum.mit.edu>2002-11-01 09:40:23 +0000
commitd24c2bc5b9a6c3fb2dc7aac3d9e864ab607fc384 (patch)
treee5cb2d4d10f18d321763166a65148fa7504723ab
parent205d13ca352b432358805cc896709bbe75015595 (diff)
Use "strchr()", not "index()"; MSVC++ doesn't declare "index()" or
"rindex()" if you include <string.h>, and they're non-standard routines (the ANSI C names for those functions are "strchr()" and "strrchr()"). svn path=/trunk/; revision=6538
-rw-r--r--tap-iostat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tap-iostat.c b/tap-iostat.c
index c5d197e70b..21d313bc75 100644
--- a/tap-iostat.c
+++ b/tap-iostat.c
@@ -1,7 +1,7 @@
/* tap-iostat.c
* iostat 2002 Ronnie Sahlberg
*
- * $Id: tap-iostat.c,v 1.1 2002/11/01 01:49:38 sahlberg Exp $
+ * $Id: tap-iostat.c,v 1.2 2002/11/01 09:40:23 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -274,7 +274,7 @@ iostat_init(char *optarg)
/* find how many ',' separated filters we have */
str=filter;
io->num_items=1;
- while((str=index(str,','))){
+ while((str=strchr(str,','))){
io->num_items++;
str++;
}
@@ -286,7 +286,7 @@ iostat_init(char *optarg)
i=0;
str=filter;
do{
- pos=index(str,',');
+ pos=strchr(str,',');
if(pos==str){
register_io_tap(io, i, NULL);
} else if(pos==NULL) {