diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-11-01 09:40:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-11-01 09:40:23 +0000 |
commit | d24c2bc5b9a6c3fb2dc7aac3d9e864ab607fc384 (patch) | |
tree | e5cb2d4d10f18d321763166a65148fa7504723ab /tap-iostat.c | |
parent | 205d13ca352b432358805cc896709bbe75015595 (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
Diffstat (limited to 'tap-iostat.c')
-rw-r--r-- | tap-iostat.c | 6 |
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) { |