tLog file close bug fixed - vaccinewars - be a doctor and try to vaccinate the … | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8a6c2d8ac4ed2160d53739ec55efc20f0847974f | |
parent a5b3709890261ebec1502bedf1ffe8ffdbe22bc3 | |
Author: Ben Webb <[email protected]> | |
Date: Tue, 30 Oct 2001 18:46:00 +0000 | |
Log file close bug fixed | |
Diffstat: | |
M Makefile.in | 6 +++--- | |
M config.h.in | 6 ++++++ | |
M src/dopewars.c | 2 +- | |
3 files changed, 10 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/Makefile.in b/Makefile.in | |
t@@ -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. | |
t@@ -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 | |
t@@ -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 | |
t@@ -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 " |