vaccinewars

be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars # fast
git clone https://src.adamsgaard.dk/vaccinewars.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 8a6c2d8ac4ed2160d53739ec55efc20f0847974f
parent a5b3709890261ebec1502bedf1ffe8ffdbe22bc3
Author: Ben Webb <ben@salilab.org>
Date:   Tue, 30 Oct 2001 18:46:00 +0000

Log file close bug fixed


Diffstat:
MMakefile.in | 6+++---
Mconfig.h.in | 6++++++
Msrc/dopewars.c | 2+-
3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/Makefile.in b/Makefile.in @@ -1,6 +1,6 @@ -# Makefile.in generated automatically by automake 1.4 from Makefile.am +# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -194,7 +194,7 @@ maintainer-clean-recursive: dot_seen=no; \ rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ rev="$$subdir $$rev"; \ - test "$$subdir" = "." && dot_seen=yes; \ + test "$$subdir" != "." || dot_seen=yes; \ done; \ test "$$dot_seen" = "no" && rev=". $$rev"; \ target=`echo $@ | sed s/-recursive//`; \ diff --git a/config.h.in b/config.h.in @@ -196,9 +196,15 @@ /* Define if you have the <sys/param.h> header file. */ #undef HAVE_SYS_PARAM_H +/* Define if you have the <sys/stat.h> header file. */ +#undef HAVE_SYS_STAT_H + /* Define if you have the <sys/time.h> header file. */ #undef HAVE_SYS_TIME_H +/* Define if you have the <sys/types.h> header file. */ +#undef HAVE_SYS_TYPES_H + /* Define if you have the <unistd.h> header file. */ #undef HAVE_UNISTD_H diff --git a/src/dopewars.c b/src/dopewars.c @@ -2087,7 +2087,7 @@ int main(int argc,char *argv[]) { } g_log_set_handler(NULL,LogMask(),ServerLogMessage,NULL); /*if (fork()<=0)*/ ServerLoop(); - fclose(logfp); + if (logfp) fclose(logfp); #endif /* GUI_SERVER */ #else g_print(_("This binary has been compiled without networking "