summaryrefslogtreecommitdiff
path: root/WIN32-Code
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-12 14:06:41 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-12 14:06:41 -0400
commit57abb359471cd8420f09928c17a0b22fe2933da2 (patch)
tree7721100915769760f096eafb54aba66d79700c8b /WIN32-Code
parent58408eedd8294272b63d9f428eae98c580d7a607 (diff)
downloadlibevent-57abb359471cd8420f09928c17a0b22fe2933da2.tar.gz
Fix consts in WIN32-Code/getopt*.[ch]
Diffstat (limited to 'WIN32-Code')
-rw-r--r--WIN32-Code/getopt.h4
-rw-r--r--WIN32-Code/getopt_long.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/WIN32-Code/getopt.h b/WIN32-Code/getopt.h
index 7137f037..796f4550 100644
--- a/WIN32-Code/getopt.h
+++ b/WIN32-Code/getopt.h
@@ -23,8 +23,8 @@ struct option
#define required_argument 1
#define optional_argument 2
-int getopt(int, char**, char*);
-int getopt_long(int, char**, char*, struct option*, int*);
+int getopt(int, char**, const char*);
+int getopt_long(int, char**, const char*, const struct option*, int*);
#ifdef __cplusplus
}
diff --git a/WIN32-Code/getopt_long.c b/WIN32-Code/getopt_long.c
index 8bbc2053..03f0c01a 100644
--- a/WIN32-Code/getopt_long.c
+++ b/WIN32-Code/getopt_long.c
@@ -160,8 +160,8 @@ int
getopt_long(nargc, nargv, options, long_options, index)
int nargc;
char ** nargv;
- char * options;
- struct option * long_options;
+ const char * options;
+ const struct option * long_options;
int * index;
{
int retval;