+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
#ifndef lint
-static char sccsid[] = "@(#)log.c 4.6 (Berkeley) 6/25/83";
-#endif
+static char sccsid[] = "@(#)log.c 5.2 (Berkeley) 5/2/87";
+#endif not lint
#include "tip.h"
+#ifdef ACULOG
static FILE *flog = NULL;
/*
num,
#endif
acu, message);
- fflush(flog);
+ (void) fflush(flog);
(void) flock(fileno(flog), LOCK_UN);
}
loginit()
{
-
-#ifdef ACULOG
flog = fopen(value(LOG), "a");
if (flog == NULL)
- fprintf(stderr, "can't open log file\r\n");
-#endif
+ fprintf(stderr, "can't open log file %s.\r\n", value(LOG));
}
+#endif