summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-11-15 21:12:09 +0000
committerEric Andersen <andersen@codepoet.org>2000-11-15 21:12:09 +0000
commitafa40ade775710f3a449e10778159ade4c133d45 (patch)
treedfcfb8d70f95e89273ee32d14c982c529c08a676 /libc/unistd
parentdc7f2e1bf0dc6ab6bec1d531026fb39271287711 (diff)
Add in tmpnam() support from David Whedon <dwhedon@gordian.com>,
rework include/stdio.h, and fix up the resultant damage.
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/getopt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/unistd/getopt.c b/libc/unistd/getopt.c
index 70d20b06b..83a9ad69c 100644
--- a/libc/unistd/getopt.c
+++ b/libc/unistd/getopt.c
@@ -34,10 +34,7 @@ int c; /* defective option letter */
return '?'; /* erroneous-option marker */
}
-int getopt(argc, argv, optstring) /* returns letter, '?', EOF */
-int argc; /* argument count from main */
-char *argv[]; /* argument vector from main */
-char *optstring; /* allowed args, e.g. "ab:c" */
+int getopt (int argc, char *const *argv, const char *optstring)
{
static int sp = 1; /* position within argument */
register int osp; /* saved `sp' for param test */