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/win32 getopt.c
Date Tue, 16 May 2000 17:01:04 GMT
rbb         00/05/16 10:01:03

  Modified:    src/lib/apr/misc/win32 getopt.c
  Log:
  Add a couple of necessary brackets to the windows version of getopt
  (this may be removed soon and Windows will just use the Unix version).  I
  do not personally see how this was ever working correctly.
  
  Revision  Changes    Path
  1.9       +4 -2      apache-2.0/src/lib/apr/misc/win32/getopt.c
  
  Index: getopt.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/misc/win32/getopt.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- getopt.c	2000/04/28 18:24:58	1.8
  +++ getopt.c	2000/05/16 17:01:02	1.9
  @@ -72,9 +72,10 @@
            * if the user didn't specify '-' as an option,
            * assume it means -1.
            */
  -        if (ap_optopt == (int) '-')
  +        if (ap_optopt == (int) '-') {
               *rv = ap_optopt;
               return (APR_EOF);
  +        }
           if (!*place)
               ++ap_optind;
           if (ap_opterr && *ostr != ':') {
  @@ -98,9 +99,10 @@
               ap_optarg = place;
           else if (nargc <= ++ap_optind) {        /* no arg */
               place = EMSG;
  -            if (*ostr == ':')
  +            if (*ostr == ':') {
                   *rv = ap_optopt;
                   return (APR_BADARG);
  +            }
               if (ap_opterr) {
                   if (!(p = strrchr(*nargv, '/')))
                       p = *nargv;
  
  
  

Mime
View raw message