diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-07-07 21:09:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-07-07 21:09:03 +0000 |
commit | 27053a2e6a215ac911c52dcf3ebf2ef65c9a6f93 (patch) | |
tree | 57c5914376680961434d94a8fbd62cd2684f9e21 /usr.bin/w | |
parent | 70d73926f815faa59a4266797933ee9fee89a8d3 (diff) |
or just use puts() instead
Diffstat (limited to 'usr.bin/w')
-rw-r--r-- | usr.bin/w/w.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 7bc0181dd5e..e496fee7514 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -1,4 +1,4 @@ -/* $OpenBSD: w.c,v 1.29 2000/07/07 21:07:41 deraadt Exp $ */ +/* $OpenBSD: w.c,v 1.30 2000/07/07 21:09:02 deraadt Exp $ */ /*- * Copyright (c) 1980, 1991, 1993, 1994 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94"; #else -static char *rcsid = "$OpenBSD: w.c,v 1.29 2000/07/07 21:07:41 deraadt Exp $"; +static char *rcsid = "$OpenBSD: w.c,v 1.30 2000/07/07 21:09:02 deraadt Exp $"; #endif #endif /* not lint */ @@ -238,9 +238,9 @@ main(argc, argv) exit (0); } -#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT\n" -#define WUSED (sizeof (HEADER) - sizeof ("WHAT\n")) - (void)printf("%s", HEADER); +#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT" +#define WUSED (sizeof (HEADER) - sizeof ("WHAT")) + (void)puts(HEADER); if ((kp = kvm_getprocs(kd, KERN_PROC_ALL, 0, &nentries)) == NULL) errx(1, "%s", kvm_geterr(kd)); |