From afa40ade775710f3a449e10778159ade4c133d45 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 15 Nov 2000 21:12:09 +0000 Subject: Add in tmpnam() support from David Whedon , rework include/stdio.h, and fix up the resultant damage. --- libc/unistd/getopt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libc/unistd') 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 */ -- cgit v1.2.3