From 79d7fc187005f7fc0edf2ff225adae5df1caf3c8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 9 Jun 2002 02:14:30 +0000 Subject: use strchr() instead of index() --- sbin/pfctl/pfctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/pfctl/pfctl.c') diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 48df9a78569..28ef0e3a726 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.71 2002/06/08 16:44:15 drahn Exp $ */ +/* $OpenBSD: pfctl.c,v 1.72 2002/06/09 02:14:29 deraadt Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -691,7 +691,7 @@ pfctl_limit(int dev, char *opt, int opts) char *arg, *serr = NULL; unsigned int limit; - arg = index(opt, '='); + arg = strchr(opt, '='); if (arg == NULL) return pfctl_getlimit(dev, opt); else { @@ -785,7 +785,7 @@ pfctl_timeout(int dev, char *opt, int opts) char *seconds, *serr = NULL; int setval; - seconds = index(opt, '='); + seconds = strchr(opt, '='); if (seconds == NULL) return pfctl_gettimeout(dev, opt); else { -- cgit v1.2.3