summaryrefslogtreecommitdiff
path: root/bin/pax/getoldopt.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-10-16 19:20:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-10-16 19:20:03 +0000
commit70f9d0aedf4ca5118e179d710d28784002eeda6f (patch)
treeaad40abf38d60da6f113eed519ae57e7eb715279 /bin/pax/getoldopt.c
parent095c2ee89237305b5ddf4176c567978054b9f40f (diff)
sprinkle const; mostly from NetBSD
Diffstat (limited to 'bin/pax/getoldopt.c')
-rw-r--r--bin/pax/getoldopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pax/getoldopt.c b/bin/pax/getoldopt.c
index 728969337df..4de13cd0d82 100644
--- a/bin/pax/getoldopt.c
+++ b/bin/pax/getoldopt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getoldopt.c,v 1.6 2002/10/16 18:44:19 millert Exp $ */
+/* $OpenBSD: getoldopt.c,v 1.7 2002/10/16 19:20:02 millert Exp $ */
/* $NetBSD: getoldopt.c,v 1.3 1995/03/21 09:07:28 cgd Exp $ */
/*
@@ -11,7 +11,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: getoldopt.c,v 1.6 2002/10/16 18:44:19 millert Exp $";
+static const char rcsid[] = "$OpenBSD: getoldopt.c,v 1.7 2002/10/16 19:20:02 millert Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -19,7 +19,7 @@ static char rcsid[] = "$OpenBSD: getoldopt.c,v 1.6 2002/10/16 18:44:19 millert E
#include <unistd.h>
int
-getoldopt(int argc, char **argv, char *optstring)
+getoldopt(int argc, char **argv, const char *optstring)
{
static char *key; /* Points to next keyletter */
static char use_getopt; /* !=0 if argv[1][0] was '-' */