summaryrefslogtreecommitdiff
path: root/include/apr_getopt.h
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-08-10 12:52:29 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-08-10 12:52:29 +0000
commit15c52c6dcfac844029aec7df380b31353400f04e (patch)
tree494ae90b1a5903035b1eee03191f5459f4c67e89 /include/apr_getopt.h
parent1153b2bb932a0569e08ad16568d77ef3e1ef516e (diff)
downloadlibapr-15c52c6dcfac844029aec7df380b31353400f04e.tar.gz
Tweak apr_getopt() and its use in ab to avoid compiler warnings.
(Note: apr_initopt() and/or its callers still need tweaking.) Submitted by: Bill Rowe Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60496 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_getopt.h')
-rw-r--r--include/apr_getopt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/apr_getopt.h b/include/apr_getopt.h
index 94fcfab11..7953f6e57 100644
--- a/include/apr_getopt.h
+++ b/include/apr_getopt.h
@@ -73,7 +73,7 @@ typedef struct apr_getopt_t {
* @param argc The number of arguments to parse
* @param argv The array of arguments to parse
* @tip Arguments 2 and 3 are most commonly argc and argv from main(argc, argv)
- * @deffunc apr_status_t apr_initopt( apr_getopt_t **os, apr_pool_t *cont,int argc, char const* const* argv)
+ * @deffunc apr_status_t apr_initopt(apr_getopt_t **os, apr_pool_t *cont,int argc, char const* const* argv)
*/
APR_EXPORT(apr_status_t) apr_initopt(apr_getopt_t **os, apr_pool_t *cont,
int argc, char const* const* argv);
@@ -93,10 +93,10 @@ APR_EXPORT(apr_status_t) apr_initopt(apr_getopt_t **os, apr_pool_t *cont,
* APR_BADARG -- No argument followed @parameter:
* APR_SUCCESS -- The next option was found.
* </PRE>
- * @deffunc apr_status_t apr_getopt(apr_getopt_t *os, const char *opts, char *optch, char const** optarg)
+ * @deffunc apr_status_t apr_getopt(apr_getopt_t *os, const char *opts, char *optch, const char **optarg)
*/
APR_EXPORT(apr_status_t) apr_getopt(apr_getopt_t *os, const char *opts,
- char *optch, char const** optarg);
+ char *optch, const char **optarg);
#endif /* ! APR_GETOPT_H */