httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@hyperreal.com>
Subject cvs commit: apache/src mod_expires.c
Date Wed, 04 Dec 1996 20:16:45 GMT
ben         96/12/04 12:16:44

  Modified:    src       mod_expires.c
  Log:
  Use isdigit instead of index.
  Submitted by: Martin.Kraemer@mch.sni.de
  
  Revision  Changes    Path
  1.3       +2 -1      apache/src/mod_expires.c
  
  Index: mod_expires.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_expires.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -C3 -r1.2 -r1.3
  *** mod_expires.c	1996/12/01 20:29:03	1.2
  --- mod_expires.c	1996/12/04 20:16:42	1.3
  ***************
  *** 187,192 ****
  --- 187,193 ----
     * Hi, welcome to the internet.
     */
    
  + #include <ctype.h>
    #include "httpd.h"
    #include "http_config.h"
    #include "http_log.h"
  ***************
  *** 277,283 ****
        while ( word[0] ) {
    	/* <num>
    	 */
  ! 	if ( index("0123456789", word[0]) != NULL ) {
    	    num = atoi( word );
    	} else {
                return pstrcat( pool, "bad expires code, numeric value expected <num>
'",
  --- 278,284 ----
        while ( word[0] ) {
    	/* <num>
    	 */
  ! 	if ( isdigit(word[0]) != NULL ) {
    	    num = atoi( word );
    	} else {
                return pstrcat( pool, "bad expires code, numeric value expected <num>
'",
  
  
  

Mime
View raw message