httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roy Fielding <field...@hyperreal.com>
Subject cvs commit: apache/src util.c httpd.h
Date Tue, 18 Feb 1997 16:27:29 GMT
fielding    97/02/18 08:27:28

  Modified:    src       util.c httpd.h
  Log:
  Deleted old, unused code cruft; fixed comment.
  
  Submitted by: Marc Slemko
  Reviewed by: Chuck Murcko, Dean Gaudet, Roy Fielding
  
  Revision  Changes    Path
  1.43      +0 -47     apache/src/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/util.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -C3 -r1.42 -r1.43
  *** util.c	1997/02/04 23:54:24	1.42
  --- util.c	1997/02/18 16:27:26	1.43
  ***************
  *** 884,910 ****
        return x;
    }
    
  - #ifdef NOTDEF
  - 
  - void escape_url(char *url) {
  -     register int x,y;
  -     register char digit;
  -     char *copy;
  - 
  -     copy = strdup(url);
  -             
  -     for(x=0,y=0;copy[x];x++,y++) {
  -         if(ind("% ?+&",url[y] = copy[x]) != -1) {
  -             c2x(copy[x],&url[y]);
  -             y+=2;
  -         }
  -     }
  -     url[y] = '\0';
  -     free(copy);
  - }
  - 
  - #endif
  - 
    int is_directory(const char *path) {
        struct stat finfo;
    
  --- 884,889 ----
  ***************
  *** 1190,1221 ****
        return ((struct in_addr *)(hep->h_addr))->s_addr;
    }
    
  - 
  - #ifdef NOTDEF    
  -     
  - char *get_remote_logname(FILE *fd) {
  -     int len;
  -     char *result;
  - #if defined(NEXT) || defined(BSD4_4) || defined(SOLARIS2) || defined(LINUX) || defined(__EMX__)
  -     struct sockaddr sa_server, sa_client;
  - #else
  -     struct sockaddr_in sa_server,sa_client;
  - #endif
  - 
  -     len = sizeof(sa_client);
  -     if(getpeername(fileno(stdout),&sa_client,&len) != -1) {
  -         len = sizeof(sa_server);
  -         if(getsockname(fileno(stdout),&sa_server,&len) == -1)
  -             result = "unknown";
  -         else
  -             result = rfc931((struct sockaddr_in *) & sa_client,
  -                                     (struct sockaddr_in *) & sa_server);
  -     }
  -     else result = "unknown";
  - 
  -     return result; /* robm=pinhead */
  - }
  - #endif    
    
    static char *find_fqdn(pool *a, struct hostent *p) {
        int x;
  --- 1169,1174 ----
  
  
  
  1.88      +1 -1      apache/src/httpd.h
  
  Index: httpd.h
  ===================================================================
  RCS file: /export/home/cvs/apache/src/httpd.h,v
  retrieving revision 1.87
  retrieving revision 1.88
  diff -C3 -r1.87 -r1.88
  *** httpd.h	1997/02/16 22:59:04	1.87
  --- httpd.h	1997/02/18 16:27:27	1.88
  ***************
  *** 535,541 ****
                                     * "" if it has and no address was found.
                                     * N.B. Only access this though
    				 * get_remote_host() */
  !   char *remote_logname;		/* Only ever set if doing_rfc931
                                     * N.B. Only access this through
    				 * get_remote_logname() */
        char *user;			/* If an authentication check was made,
  --- 535,541 ----
                                     * "" if it has and no address was found.
                                     * N.B. Only access this though
    				 * get_remote_host() */
  !   char *remote_logname;		/* Only ever set if doing rfc1413 lookups.
                                     * N.B. Only access this through
    				 * get_remote_logname() */
        char *user;			/* If an authentication check was made,
  
  
  

Mime
View raw message