Patch by Chris Herborth:

have to use a const-correct prototype on BeOS or the compiler gets uppity.
This commit is contained in:
Guido van Rossum 1998-12-17 18:03:10 +00:00
parent 5cd975c678
commit 0e1d0e95ea

View file

@ -40,10 +40,14 @@ int optind = 1; /* index into argv array */
char * optarg = NULL; /* optional argument */ char * optarg = NULL; /* optional argument */
#ifndef __BEOS__
int getopt(argc,argv,optstring) int getopt(argc,argv,optstring)
int argc; int argc;
char *argv[]; char *argv[];
char optstring[]; char optstring[];
#else
int getopt( int argc, char *const *argv, const char *optstring )
#endif
{ {
static char *opt_ptr = ""; static char *opt_ptr = "";
register char *ptr; register char *ptr;