diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-06-23 19:10:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-06-23 19:10:27 +0000 |
commit | 92d546499e23501d667e7eb7ebb3c8b86f25e057 (patch) | |
tree | 1c83eb8c20ec900de13b15c536e0b913815b4d2f /epan/ftypes/ftype-ipv4.c | |
parent | 39b0e82f636f946cca77e6c4302d90761983fedf (diff) |
"index()" is non-standard, and MSVC++ 6.0 complained about it; the ANSI
C standard has "strchr()" instead, so use it.
svn path=/trunk/; revision=3602
Diffstat (limited to 'epan/ftypes/ftype-ipv4.c')
-rw-r--r-- | epan/ftypes/ftype-ipv4.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/ftypes/ftype-ipv4.c b/epan/ftypes/ftype-ipv4.c index 09a92df649..03e8d3a92c 100644 --- a/epan/ftypes/ftype-ipv4.c +++ b/epan/ftypes/ftype-ipv4.c @@ -1,10 +1,9 @@ /* - * $Id: ftype-ipv4.c,v 1.4 2001/06/22 16:29:15 gram Exp $ + * $Id: ftype-ipv4.c,v 1.5 2001/06/23 19:10:27 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs <gerald@zing.org> + * By Gerald Combs <gerald@ethereal.com> * Copyright 2001 Gerald Combs - * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -56,7 +55,7 @@ val_from_string(fvalue_t *fv, char *s, LogFunc log) fvalue_t *nmask_fvalue; /* Look for CIDR: Is there a single slash in the string? */ - has_slash = index(s, '/'); + has_slash = strchr(s, '/'); if (has_slash) { /* Make a copy of the string and use strtok() to * get the address portion. */ |