summaryrefslogtreecommitdiffstats
path: root/usr.sbin/repquota
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-01-17 07:10:42 +0000
committermillert <millert@openbsd.org>1997-01-17 07:10:42 +0000
commit180acc8f08201633decf63424d1317ede80af916 (patch)
treeb64a266b7ea344cb2be4663edaffe52d9eb8de8c /usr.sbin/repquota
parentlite2 daily + our changes. We can remove old tmp files now that fts(3) (diff)
downloadwireguard-openbsd-180acc8f08201633decf63424d1317ede80af916.tar.xz
wireguard-openbsd-180acc8f08201633decf63424d1317ede80af916.zip
r?index -> strr?chr
Diffstat (limited to 'usr.sbin/repquota')
-rw-r--r--usr.sbin/repquota/repquota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c
index e3fcdb3d51f..07a5504d04c 100644
--- a/usr.sbin/repquota/repquota.c
+++ b/usr.sbin/repquota/repquota.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)repquota.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: repquota.c,v 1.8 1996/12/12 20:32:17 deraadt Exp $";
+static char *rcsid = "$Id: repquota.c,v 1.9 1997/01/17 07:14:24 millert Exp $";
#endif /* not lint */
/*
@@ -280,7 +280,7 @@ hasquota(fs, type, qfnamep)
char **qfnamep;
{
register char *opt;
- char *cp, *index(), *strtok();
+ char *cp;
static char initname, usrname[100], grpname[100];
static char buf[BUFSIZ];
@@ -291,7 +291,7 @@ hasquota(fs, type, qfnamep)
}
strcpy(buf, fs->fs_mntops);
for (opt = strtok(buf, ","); opt; opt = strtok(NULL, ",")) {
- if ((cp = index(opt, '=')))
+ if ((cp = strchr(opt, '=')))
*cp++ = '\0';
if (type == USRQUOTA && strcmp(opt, usrname) == 0)
break;