mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
Fix consts in WIN32-Code/getopt*.[ch]
This commit is contained in:
parent
58408eedd8
commit
57abb35947
@ -23,8 +23,8 @@ struct option
|
|||||||
#define required_argument 1
|
#define required_argument 1
|
||||||
#define optional_argument 2
|
#define optional_argument 2
|
||||||
|
|
||||||
int getopt(int, char**, char*);
|
int getopt(int, char**, const char*);
|
||||||
int getopt_long(int, char**, char*, struct option*, int*);
|
int getopt_long(int, char**, const char*, const struct option*, int*);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -160,8 +160,8 @@ int
|
|||||||
getopt_long(nargc, nargv, options, long_options, index)
|
getopt_long(nargc, nargv, options, long_options, index)
|
||||||
int nargc;
|
int nargc;
|
||||||
char ** nargv;
|
char ** nargv;
|
||||||
char * options;
|
const char * options;
|
||||||
struct option * long_options;
|
const struct option * long_options;
|
||||||
int * index;
|
int * index;
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user