summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/getsubopt.c
diff options
context:
space:
mode:
authorpat <>2005-03-30 18:51:49 +0000
committerpat <>2005-03-30 18:51:49 +0000
commit894b6ab0099e7d9ca2ad9acb75246cd0a4542167 (patch)
treef9fb8e9324f6cbdc10d72cab8b889d470252465a /src/lib/libc/stdlib/getsubopt.c
parent162f8b042bf31ab94714a6f194e9836c08c085f5 (diff)
downloadopenbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.tar.gz
openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.tar.bz2
openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.zip
ansi + de-register
ok otto deraadt
Diffstat (limited to '')
-rw-r--r--src/lib/libc/stdlib/getsubopt.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libc/stdlib/getsubopt.c b/src/lib/libc/stdlib/getsubopt.c
index 308458ea75..dfd7a50bd8 100644
--- a/src/lib/libc/stdlib/getsubopt.c
+++ b/src/lib/libc/stdlib/getsubopt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getsubopt.c,v 1.2 2003/06/02 20:18:37 millert Exp $ */ 1/* $OpenBSD: getsubopt.c,v 1.3 2005/03/30 18:51:49 pat Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1990, 1993 4 * Copyright (c) 1990, 1993
@@ -33,7 +33,7 @@
33#if 0 33#if 0
34static char sccsid[] = "@(#)getsubopt.c 8.1 (Berkeley) 6/4/93"; 34static char sccsid[] = "@(#)getsubopt.c 8.1 (Berkeley) 6/4/93";
35#else 35#else
36static char rcsid[] = "$OpenBSD: getsubopt.c,v 1.2 2003/06/02 20:18:37 millert Exp $"; 36static char rcsid[] = "$OpenBSD: getsubopt.c,v 1.3 2005/03/30 18:51:49 pat Exp $";
37#endif 37#endif
38#endif /* not lint */ 38#endif /* not lint */
39 39
@@ -50,12 +50,10 @@ static char rcsid[] = "$OpenBSD: getsubopt.c,v 1.2 2003/06/02 20:18:37 millert E
50char *suboptarg; 50char *suboptarg;
51 51
52int 52int
53getsubopt(optionp, tokens, valuep) 53getsubopt(char **optionp, char * const *tokens, char **valuep)
54 register char **optionp, **valuep;
55 register char * const *tokens;
56{ 54{
57 register int cnt; 55 int cnt;
58 register char *p; 56 char *p;
59 57
60 suboptarg = *valuep = NULL; 58 suboptarg = *valuep = NULL;
61 59