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 util.c
Date Mon, 19 Aug 1996 22:58:34 GMT
ben         96/08/19 15:58:33

  Modified:    src       util.c
  Log:
  Remove strange unused code of unknown provenance.
  
  Revision  Changes    Path
  1.17      +0 -38     apache/src/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/util.c,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -C3 -r1.16 -r1.17
  *** util.c	1996/08/19 17:54:52	1.16
  --- util.c	1996/08/19 22:58:28	1.17
  ***************
  *** 66,109 ****
    #include <time.h>
    #endif
    
  - #ifdef NOTDEF
  - extern char** environ;
  - 
  - /* taken from bdflush-1.5 for Linux source code */
  - void inststr(char *dst[], int argc, char *src)
  - {
  -     if (strlen(src) <= strlen(dst[0]))
  -     {
  -         char *ptr;
  - 
  -         for (ptr = dst[0]; *ptr; *(ptr++) = '\0');
  - 
  -         strcpy(dst[0], src);
  -     } else
  -     {
  -         /* stolen from the source to perl 4.036 (assigning to $0) */
  -         char *ptr, *ptr2;
  -         int count;
  -         ptr = dst[0] + strlen(dst[0]);
  -         for (count = 1; count < argc; count++) {
  -             if (dst[count] == ptr + 1)
  -                 ptr += strlen(++ptr);
  -         }
  -         if (environ[0] == ptr + 1) {
  -             for (count = 0; environ[count]; count++)
  -                 if (environ[count] == ptr + 1)
  -                     ptr += strlen(++ptr);
  -         }
  -         count = 0;
  -         for (ptr2 = dst[0]; ptr2 <= ptr; ptr2++) {
  -             *ptr2 = '\0';
  -             count++;
  -         }
  -         strncpy(dst[0], src, count);
  -     }
  - }
  - #endif
  - 
    char *get_time() {
        time_t t;
        char *time_string;
  --- 66,71 ----
  
  
  

Mime
View raw message