projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d60dc8
)
(getopt_long, getopt_long_only): Arg is char * const *
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 17 Nov 2004 01:52:50 +0000
(
01:52
+0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 17 Nov 2004 01:52:50 +0000
(
01:52
+0000)
when compiling for libc.
lib/getopt1.c
patch
|
blob
|
history
diff --git
a/lib/getopt1.c
b/lib/getopt1.c
index 2ceff8ec8426a11911da42290ff19b068ffc8501..a7472371fa20a5071ea718a55ac7444b8b0efe50 100644
(file)
--- a/
lib/getopt1.c
+++ b/
lib/getopt1.c
@@
-41,10
+41,11
@@
#endif
int
#endif
int
-getopt_long (int argc, char **argv, const char *options,
+getopt_long (int argc, char *
__getopt_argv_const
*argv, const char *options,
const struct option *long_options, int *opt_index)
{
const struct option *long_options, int *opt_index)
{
- return _getopt_internal (argc, argv, options, long_options, opt_index, 0, 0);
+ return _getopt_internal (argc, (char **) argv, options, long_options,
+ opt_index, 0, 0);
}
int
}
int
@@
-62,10
+63,12
@@
_getopt_long_r (int argc, char **argv, const char *options,
instead. */
int
instead. */
int
-getopt_long_only (int argc, char **argv, const char *options,
+getopt_long_only (int argc, char *__getopt_argv_const *argv,
+ const char *options,
const struct option *long_options, int *opt_index)
{
const struct option *long_options, int *opt_index)
{
- return _getopt_internal (argc, argv, options, long_options, opt_index, 1, 0);
+ return _getopt_internal (argc, (char **) argv, options, long_options,
+ opt_index, 1, 0);
}
int
}
int