summaryrefslogtreecommitdiff
path: root/www/webreport/files/patch-webreport.c
blob: 0ba8a884e0904a5487def9ed478fc808d336b5ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- webreport.c.org	Sat Feb  7 17:06:38 2004
+++ webreport.c	Sat Feb  7 17:06:47 2004
@@ -22,7 +22,7 @@
 #include <errno.h>
 #include <string.h>
 #include <time.h>
-#include <getopt.h>
+#include <unistd.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -808,7 +808,7 @@
 }
 
 char *comma_string_long(in_long )
- ulong in_long;
+ unsigned long in_long;
 {
  char tmpbuf[MAX_TINY_BUF];
  static char tmpbuf1[MAX_TINY_BUF];
@@ -1866,10 +1866,10 @@
 
 report_open_files()
 {
-	strncpy( Globals.TextReportName, "/usr/tmp/webreport.text.XXXXXX", 100);
+	strncpy( Globals.TextReportName, "/var/tmp/webreport.text.XXXXXX", 100);
 	mkstemp(Globals.TextReportName);
 
-	strncpy( Globals.HTMLReportName, "/usr/tmp/webreport.html.XXXXXX", 100);
+	strncpy( Globals.HTMLReportName, "/var/tmp/webreport.html.XXXXXX", 100);
 	mkstemp(Globals.HTMLReportName);
 
 	Globals.TextReport = fopen(Globals.TextReportName, "w");
@@ -2084,7 +2084,7 @@
 			fputs( Globals.TmpBuf, fs);
 		}
 	} else {
-		fprintf( Globals.HTMLReport, 
+		fprintf(Globals.HTMLReport, 
 			"Subject: %s\n", Globals.cur_site->title);
 		fprintf( Globals.HTMLReport, 
 			"Content-Type: text/html; charset=us-ascii\n");