Received: by taz.hyperreal.com (8.7.6/V2.0) id NAA00485; Sun, 3 Nov 1996 13:13:04 -0800 (PST) Received: by taz.hyperreal.com (8.7.6/V2.0) id NAA00477; Sun, 3 Nov 1996 13:13:01 -0800 (PST) Date: Sun, 3 Nov 1996 13:13:01 -0800 (PST) From: Brian Behlendorf Message-Id: <199611032113.NAA00477@taz.hyperreal.com> To: apache-cvs@hyperreal.com Subject: cvs commit: apache/support rotatelogs.c Sender: owner-apache-cvs@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com brian 96/11/03 13:13:01 Modified: support rotatelogs.c Log: More missing header files, printf warning fixed. Revision Changes Path 1.5 +3 -1 apache/support/rotatelogs.c Index: rotatelogs.c =================================================================== RCS file: /export/home/cvs/apache/support/rotatelogs.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C3 -r1.4 -r1.5 *** rotatelogs.c 1996/11/03 21:02:33 1.4 --- rotatelogs.c 1996/11/03 21:13:00 1.5 *************** *** 12,20 **** --- 12,22 ---- #define MAX_PATH 1024 #include + #include #include #include #include + #include void main(int argc,char **argv) { *************** *** 64,70 **** if(nLogFD < 0) { time_t tLogStart=(time(NULL)/tRotation)*tRotation; ! sprintf(buf2,"%s.%d",szLogRoot,tLogStart); tLogEnd=tLogStart+tRotation; nLogFD=open(buf2,O_WRONLY|O_CREAT|O_APPEND,0666); if(nLogFD < 0) --- 66,72 ---- if(nLogFD < 0) { time_t tLogStart=(time(NULL)/tRotation)*tRotation; ! sprintf(buf2,"%s.%d",szLogRoot,(int)tLogStart); tLogEnd=tLogStart+tRotation; nLogFD=open(buf2,O_WRONLY|O_CREAT|O_APPEND,0666); if(nLogFD < 0)