projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_3_Tahoe release
[unix-history]
/
usr
/
src
/
usr.bin
/
tip
/
log.c
diff --git
a/usr/src/usr.bin/tip/log.c
b/usr/src/usr.bin/tip/log.c
index
448677f
..
24391a4
100644
(file)
--- a/
usr/src/usr.bin/tip/log.c
+++ b/
usr/src/usr.bin/tip/log.c
@@
-1,10
+1,16
@@
+/*
+ * 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
#ifndef lint
-static char sccsid[] = "@(#)log.c
4.5 (Berkeley) %G%
";
-#endif
+static char sccsid[] = "@(#)log.c
5.2 (Berkeley) 5/2/87
";
+#endif
not lint
-#ifdef ACULOG
#include "tip.h"
#include "tip.h"
+#ifdef ACULOG
static FILE *flog = NULL;
/*
static FILE *flog = NULL;
/*
@@
-40,15
+46,14
@@
logent(group, num, acu, message)
num,
#endif
acu, message);
num,
#endif
acu, message);
- fflush(flog);
+
(void)
fflush(flog);
(void) flock(fileno(flog), LOCK_UN);
}
loginit()
{
(void) flock(fileno(flog), LOCK_UN);
}
loginit()
{
-
flog = fopen(value(LOG), "a");
if (flog == NULL)
flog = fopen(value(LOG), "a");
if (flog == NULL)
- fprintf(stderr, "can't open log file
\r\n"
);
+ fprintf(stderr, "can't open log file
%s.\r\n", value(LOG)
);
}
#endif
}
#endif