diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 21:08:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 21:08:17 +0000 |
commit | 2ff2a6df1f367e97160f7c805c68b9a829b03a45 (patch) | |
tree | 280678041612d983ee3097b18e8d18d54b7b9f67 /lib/libc/string/strsep.c | |
parent | 21ac64d7aa40363658ebcaef7506daa87f941f2c (diff) |
ansification; pval ok
Diffstat (limited to 'lib/libc/string/strsep.c')
-rw-r--r-- | lib/libc/string/strsep.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/libc/string/strsep.c b/lib/libc/string/strsep.c index 2549707fbb3..337d78e466d 100644 --- a/lib/libc/string/strsep.c +++ b/lib/libc/string/strsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strsep.c,v 1.4 2003/06/02 20:18:38 millert Exp $ */ +/* $OpenBSD: strsep.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -36,7 +36,7 @@ #if 0 static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93"; #else -static char *rcsid = "$OpenBSD: strsep.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; +static char *rcsid = "$OpenBSD: strsep.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -52,13 +52,11 @@ static char *rcsid = "$OpenBSD: strsep.c,v 1.4 2003/06/02 20:18:38 millert Exp $ * If *stringp is NULL, strsep returns NULL. */ char * -strsep(stringp, delim) - register char **stringp; - register const char *delim; +strsep(char **stringp, const char *delim) { - register char *s; - register const char *spanp; - register int c, sc; + char *s; + const char *spanp; + int c, sc; char *tok; if ((s = *stringp) == NULL) |