summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
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 */