httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/misc/unix getopt.c
Date Thu, 17 Aug 2000 00:29:39 GMT
rbb         00/08/16 17:29:39

  Modified:    src/lib/apr/include apr_getopt.h
               src/lib/apr/misc/unix getopt.c
  Log:
  Fix some warnings from initopt and getopt.
  
  Revision  Changes    Path
  1.19      +3 -3      apache-2.0/src/lib/apr/include/apr_getopt.h
  
  Index: apr_getopt.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/include/apr_getopt.h,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- apr_getopt.h	2000/08/10 12:52:28	1.18
  +++ apr_getopt.h	2000/08/17 00:29:38	1.19
  @@ -62,7 +62,7 @@
       int opt;                 /* character checked for validity */
       int reset;               /* reset getopt */
       int argc;                /* count of arguments */
  -    char const* const* argv; /* array of pointers to arguments */
  +    char *const *argv;             /* array of pointers to arguments */
       char const* place;       /* argument associated with option */
   } apr_getopt_t;
   
  @@ -73,10 +73,10 @@
    * @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 *argv)
    */
   APR_EXPORT(apr_status_t) apr_initopt(apr_getopt_t **os, apr_pool_t *cont,
  -                                     int argc, char const* const* argv);
  +                                     int argc, char *const *argv);
   
   /**
    * Parse the options initialized by apr_initopt().
  
  
  
  1.22      +1 -1      apache-2.0/src/lib/apr/misc/unix/getopt.c
  
  Index: getopt.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/misc/unix/getopt.c,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- getopt.c	2000/08/10 12:52:29	1.21
  +++ getopt.c	2000/08/17 00:29:39	1.22
  @@ -36,7 +36,7 @@
   #define EMSG    ""
   
   APR_EXPORT(apr_status_t) apr_initopt(apr_getopt_t **os, apr_pool_t *cont,
  -                                     int argc, char const* const* argv)
  +                                     int argc, char *const *argv)
   {
       *os = apr_palloc(cont, sizeof(apr_getopt_t));
       (*os)->cont = cont;
  
  
  

Mime
View raw message