Kaydet (Commit) 0e1d0e95 authored tarafından Guido van Rossum's avatar Guido van Rossum

Patch by Chris Herborth:

have to use a const-correct prototype on BeOS or the compiler gets uppity.
üst 5cd975c6
......@@ -40,10 +40,14 @@ int optind = 1; /* index into argv array */
char * optarg = NULL; /* optional argument */
#ifndef __BEOS__
int getopt(argc,argv,optstring)
int argc;
char *argv[];
char optstring[];
#else
int getopt( int argc, char *const *argv, const char *optstring )
#endif
{
static char *opt_ptr = "";
register char *ptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment