summaryrefslogtreecommitdiff
path: root/usr.bin/tip/log.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-16 19:32:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-16 19:32:47 +0000
commita397a40b7c93265cb2ed617a6612f3db999b591c (patch)
tree496d239526cc99d20c475362d2152ebe207d005c /usr.bin/tip/log.c
parente50a27ad82d19d68cc60eda00477acb2b2b7a5f3 (diff)
first pass of cleanup of this mess; ok dhill
Diffstat (limited to 'usr.bin/tip/log.c')
-rw-r--r--usr.bin/tip/log.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/tip/log.c b/usr.bin/tip/log.c
index 8a7ceab1f5c..bb899d896a4 100644
--- a/usr.bin/tip/log.c
+++ b/usr.bin/tip/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.7 2003/06/03 02:56:18 millert Exp $ */
+/* $OpenBSD: log.c,v 1.8 2006/03/16 19:32:46 deraadt Exp $ */
/* $NetBSD: log.c,v 1.4 1994/12/24 17:56:28 cgd Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] = "$OpenBSD: log.c,v 1.7 2003/06/03 02:56:18 millert Exp $";
+static const char rcsid[] = "$OpenBSD: log.c,v 1.8 2006/03/16 19:32:46 deraadt Exp $";
#endif /* not lint */
#include "tip.h"
@@ -46,8 +46,7 @@ static FILE *flog = NULL;
* Log file maintenance routines
*/
void
-logent(group, num, acu, message)
- char *group, *num, *acu, *message;
+logent(char *group, char *num, char *acu, char *message)
{
char *user, *timestamp;
struct passwd *pwd;
@@ -81,7 +80,7 @@ logent(group, num, acu, message)
}
void
-loginit()
+loginit(void)
{
flog = fopen(value(LOG), "a");
if (flog == NULL)