You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Ben Laurie <be...@hyperreal.com> on 1996/12/04 21:16:45 UTC

cvs commit: apache/src mod_expires.c

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> '",