aboutsummaryrefslogtreecommitdiff
path: root/apps/systemlib/getopt_long.h
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-09-10 00:16:30 -0700
committerpx4dev <px4@purgatory.org>2012-09-10 00:16:30 -0700
commitb1767480d2a0930c60ca59b1b047a9018663556b (patch)
tree455b19d0a546bd212ff37399cd4cd763f0939c0a /apps/systemlib/getopt_long.h
parent68d4a26b9ead5a042edb14dd5c038df2908ea7fe (diff)
downloadpx4-firmware-b1767480d2a0930c60ca59b1b047a9018663556b.tar.gz
px4-firmware-b1767480d2a0930c60ca59b1b047a9018663556b.tar.bz2
px4-firmware-b1767480d2a0930c60ca59b1b047a9018663556b.zip
Some fixes for getopt_long
Diffstat (limited to 'apps/systemlib/getopt_long.h')
-rw-r--r--apps/systemlib/getopt_long.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/systemlib/getopt_long.h b/apps/systemlib/getopt_long.h
index f372fedaa..3e51550a6 100644
--- a/apps/systemlib/getopt_long.h
+++ b/apps/systemlib/getopt_long.h
@@ -121,11 +121,13 @@ extern "C"
extern int optopt;
/* function prototypes */
+#if 0
int getopt (int argc, char **argv, char *optstring);
- int getopt_long (int argc, char **argv, char *shortopts,
- GETOPT_LONG_OPTION_T * longopts, int *longind);
- int getopt_long_only (int argc, char **argv, char *shortopts,
- GETOPT_LONG_OPTION_T * longopts, int *longind);
+#endif
+ int getopt_long (int argc, char **argv, const char *shortopts,
+ const GETOPT_LONG_OPTION_T * longopts, int *longind);
+ int getopt_long_only (int argc, char **argv, const char *shortopts,
+ const GETOPT_LONG_OPTION_T * longopts, int *longind);
#ifdef __cplusplus
};