aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-01-17 20:21:40 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-01-17 20:21:40 +0000
commit5c53d6dfdd32cb02eceadf6c4c6bf4a859282f9b (patch)
treec3d7d551c0c49f10e6051b7137cad8d11a55973f /editcap.c
parentf646667da1e3093b425e184878f3965e40785dd9 (diff)
Use "strchr()" rather than "index()" - the ANSI C standard specifies
"strchr()", and it, unlike "index()", is declared in <string.h>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1502 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/editcap.c b/editcap.c
index 9ac915a845..5efff45f75 100644
--- a/editcap.c
+++ b/editcap.c
@@ -1,10 +1,11 @@
/* Edit capture files. We can delete records, or simply convert from one
* format to another format.
*
- * $Id: editcap.c,v 1.5 2000/01/17 08:06:03 sharpe Exp $
+ * $Id: editcap.c,v 1.6 2000/01/17 20:21:40 guy Exp $
*
* Originally written by Richard Sharpe.
* Improved by Guy Harris.
+ * Further improved by Richard Sharpe.
*/
#include <stdio.h>
@@ -46,7 +47,7 @@ void add_selection(char *sel)
printf("Add_Selected: %s\n", sel);
- if ((locn = index(sel, '-')) == NULL) { /* No dash, so a single number? */
+ if ((locn = strchr(sel, '-')) == NULL) { /* No dash, so a single number? */
printf("Not inclusive ...");