1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Fix build on -current by not initializing FILE * variables statically

This commit is contained in:
Kris Kennaway 2002-09-05 03:36:48 +00:00
parent 284b0ac57e
commit 8616f7ffb4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65647
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,19 @@
--- webmaster.c.orig Wed Sep 4 20:30:39 2002
+++ webmaster.c Wed Sep 4 20:31:22 2002
@@ -88,7 +88,7 @@
SOCKET socknum[MAXCLIENTS];
SOCKET sockIO[MAXTOTALPROCS];
SOCKET sockErr[MAXTOTALPROCS];
-THREAD FILE *debugfile = stderr;
+THREAD FILE *debugfile;
struct hostent *master_phe; /* IP addresses for webmaster */
@@ -1385,6 +1385,7 @@
/* Initalization of variables. */
/* debugfile = stdout; */
+ debugfile = stderr;
memset(buffer, 0, NCCARGS);
memset(webserver, 0, MAXHOSTNAMELEN);
memset(configfile, 0, MAXPATHLEN);

View File

@ -0,0 +1,11 @@
--- webclient.c.orig Wed Sep 4 20:34:36 2002
+++ webclient.c Wed Sep 4 20:35:02 2002
@@ -79,7 +79,7 @@
char proxyserver[MAXHOSTNAMELEN];
char debug_filename[MAXPATHLEN];
-THREAD FILE *debugfile = stderr;
+THREAD FILE *debugfile;
THREAD FILE *logfile;
THREAD stats_t timestat;
THREAD rqst_timer_t timerarray[MAXNUMOFFILES];