From a3501ea5b2dd4a1b1aff2b5ab66e7a028299cdbc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 17 Apr 1995 09:32:08 +0000 Subject: [PATCH] Minor changes. --- fml/Makefile | 12 ++++++------ res+log/Makefile | 15 +++++++++------ res+log/README | 5 ++--- res+log/gw-log.c | 7 +++++-- 4 files changed, 22 insertions(+), 17 deletions(-) diff --git a/fml/Makefile b/fml/Makefile index 00ee88c..08a4b6b 100644 --- a/fml/Makefile +++ b/fml/Makefile @@ -1,6 +1,6 @@ # FML interpreter. Europagate, 1995 # -# $Id: Makefile,v 1.14 1995/03/27 12:49:51 adam Exp $ +# $Id: Makefile,v 1.15 1995/04/17 09:32:08 adam Exp $ SHELL=/bin/sh INCLUDE=-I../include -I. $(REGEXINC) @@ -31,14 +31,14 @@ clean: depend: depend2 depend1: - mv Makefile Makefile.tmp - sed '/^#Depend/q' Makefile - $(CPP) $(INCLUDE) -M *.c >>Makefile - -rm Makefile.tmp + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile depend2: - $(CPP) $(INCLUDE) -M *.c >.depend + $(CPP) $(DEFS) -M *.c >.depend +#GNU make style depend ifeq (.depend,$(wildcard .depend)) include .depend endif diff --git a/res+log/Makefile b/res+log/Makefile index f47da3d..cac7d65 100644 --- a/res+log/Makefile +++ b/res+log/Makefile @@ -2,7 +2,10 @@ # Europagate, 1994-1995. # # $Log: Makefile,v $ -# Revision 1.5 1995/03/27 12:51:10 adam +# Revision 1.6 1995/04/17 09:36:03 adam +# Minor changes. +# +# Revision 1.5 1995/03/27 12:51:10 adam # New log level in use: GW_LOG_ERRNO. # # Revision 1.4 1995/02/23 08:32:20 adam @@ -46,14 +49,14 @@ clean: depend: depend2 depend1: - mv Makefile Makefile.tmp - sed '/^#Depend/q' Makefile - $(CPP) $(INCLUDE) -M *.c >>Makefile - -rm Makefile.tmp + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile depend2: - $(CPP) $(INCLUDE) -M *.c >.depend + $(CPP) $(DEFS) -M *.c >.depend +#GNU make style depend ifeq (.depend,$(wildcard .depend)) include .depend endif diff --git a/res+log/README b/res+log/README index adab37a..7ebba7f 100644 --- a/res+log/README +++ b/res+log/README @@ -1,7 +1,6 @@ -# $Id: README,v 1.3 1995/04/11 14:17:58 adam Exp $ -Wed Dec 14 1994 +# $Id: README,v 1.4 1995/04/17 09:36:15 adam Exp $ -Resource management + logging system, Europagate 1994 +Resource management + logging system, Europagate 1994-1995 File Description diff --git a/res+log/gw-log.c b/res+log/gw-log.c index 901fb7b..3c0a7b7 100644 --- a/res+log/gw-log.c +++ b/res+log/gw-log.c @@ -4,7 +4,10 @@ * Europagate, 1994-1995. * * $Log: gw-log.c,v $ - * Revision 1.7 1995/04/10 13:20:25 adam + * Revision 1.8 1995/04/17 09:36:16 adam + * Minor changes. + * + * Revision 1.7 1995/04/10 13:20:25 adam * Use gettimeofday(2) instead of time(2) to get log time in milliseconds. * * Revision 1.6 1995/03/28 08:01:51 adam @@ -152,7 +155,7 @@ int gw_log (unsigned level_a, const char *event_type, const char *format, ...) memcpy (&tms, localtime (&tv.tv_sec), sizeof(tms)); sprintf (emit_str, "%s %d %02d%02d%02d%02d%02d%02d%03d %d %s ", app_name, session, - tms.tm_year, tms.tm_mon, tms.tm_mday, + tms.tm_year, 1+tms.tm_mon, tms.tm_mday, tms.tm_hour, tms.tm_min, tms.tm_sec, (int) (tv.tv_usec/1000), e_level, event_type); -- 1.7.10.4