diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-09 02:14:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-09 02:14:30 +0000 |
commit | 79d7fc187005f7fc0edf2ff225adae5df1caf3c8 (patch) | |
tree | 7a07c5dec0fd6522d09c635c783f450a5dcbbf2f /sbin/pfctl/pfctl.c | |
parent | 099a902cee5aae6c580eca431868d21b5a2efdaa (diff) |
use strchr() instead of index()
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r-- | sbin/pfctl/pfctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |