Permalink
Browse files

Fix compilation warning with getopt_long() on MinGW.

  • Loading branch information...
1 parent 6be76e5 commit 657a0b919f2ff7e79ce4e1f555c50f23226e3ee2 @nicolasdespres nicolasdespres committed Nov 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/getopt.h
View
4 src/getopt.h
@@ -41,9 +41,9 @@ extern "C"
/* function prototypes */
int getopt (int argc, char **argv, char *optstring);
int getopt_long (int argc, char **argv, const char *shortopts,
- GETOPT_LONG_OPTION_T * longopts, int *longind);
+ const GETOPT_LONG_OPTION_T * longopts, int *longind);
int getopt_long_only (int argc, char **argv, const char *shortopts,
- GETOPT_LONG_OPTION_T * longopts, int *longind);
+ const GETOPT_LONG_OPTION_T * longopts, int *longind);
#ifdef __cplusplus
};

0 comments on commit 657a0b9

Please sign in to comment.