httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/support htdbm.c
Date Sat, 19 Jan 2002 12:16:49 GMT
trawick     02/01/19 04:16:48

  Modified:    support  htdbm.c
  Log:
  clean up a bunch of warnings
  
  Revision  Changes    Path
  1.6       +4 -22     httpd-2.0/support/htdbm.c
  
  Index: htdbm.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/htdbm.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- htdbm.c	18 Jan 2002 00:14:43 -0000	1.5
  +++ htdbm.c	19 Jan 2002 12:16:48 -0000	1.6
  @@ -84,6 +84,7 @@
   #if APR_HAVE_STRINGS_H
   #include <strings.h>
   #endif
  +#include <time.h>
   
   #if APR_CHARSET_EBCDIC
   #include "apr_xlate.h"
  @@ -214,25 +215,6 @@
                               APR_OS_DEFAULT, htdbm->pool);
   }
   
  -static char * ap_getword(apr_pool_t *atrans, char **line, char stop)
  -{
  -    char *pos = strrchr(*line, stop);
  -    char *res;
  -
  -    if (!pos) {
  -        res = apr_pstrdup(atrans, *line);
  -        *line += strlen(*line);
  -        return res;
  -    }
  -
  -    res = apr_pstrndup(atrans, *line, pos - *line);
  -
  -    while (*pos == stop)
  -        ++pos;
  -    *line = pos;
  -    return res;
  -}
  -
   static apr_status_t htdbm_save(htdbm_t *htdbm, int *changed) 
   {
       apr_datum_t key, val;
  @@ -498,9 +480,9 @@
                   break;
               case 'T':
                   h->type = apr_pstrdup(h->pool, ++arg);
  -                while (*arg !='\0')
  -                    *++arg;
  -                *--arg; /* so incrementing this in the loop with find a null */
  +                while (*arg != '\0')
  +                    ++arg;
  +                --arg; /* so incrementing this in the loop with find a null */
                   break;
               case 'v':
                   h->rdonly = 1;
  
  
  

Mime
View raw message