Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/wall Remove mysterious check for "sleeper" who would...



details:   https://anonhg.NetBSD.org/src/rev/03b70e12cb74
branches:  trunk
changeset: 501640:03b70e12cb74
user:      mjl <mjl%NetBSD.org@localhost>
date:      Fri Jan 05 04:00:34 2001 +0000

description:
Remove mysterious check for "sleeper" who would not get walled.

diffstat:

 usr.bin/wall/wall.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 4df1c4650e85 -r 03b70e12cb74 usr.bin/wall/wall.c
--- a/usr.bin/wall/wall.c       Fri Jan 05 03:54:34 2001 +0000
+++ b/usr.bin/wall/wall.c       Fri Jan 05 04:00:34 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wall.c,v 1.16 2000/10/02 03:29:06 taca Exp $   */
+/*     $NetBSD: wall.c,v 1.17 2001/01/05 04:00:34 mjl Exp $    */
 
 /*
  * Copyright (c) 1988, 1990, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)wall.c     8.2 (Berkeley) 11/16/93";
 #endif
-__RCSID("$NetBSD: wall.c,v 1.16 2000/10/02 03:29:06 taca Exp $");
+__RCSID("$NetBSD: wall.c,v 1.17 2001/01/05 04:00:34 mjl Exp $");
 #endif /* not lint */
 
 /*
@@ -69,8 +69,6 @@
 void   makemsg __P((char *));
 int    main __P((int, char *[]));
 
-#define        IGNOREUSER      "sleeper"
-
 int nobanner;
 int mbufsize;
 char *mbuf;
@@ -115,8 +113,7 @@
        iov.iov_len = mbufsize;
        /* NOSTRICT */
        while (fread((char *)&utmp, sizeof(utmp), 1, fp) == 1) {
-               if (!utmp.ut_name[0] ||
-                   !strncmp(utmp.ut_name, IGNOREUSER, sizeof(utmp.ut_name)))
+               if (!utmp.ut_name[0])
                        continue;
                strncpy(line, utmp.ut_line, sizeof(utmp.ut_line));
                line[sizeof(utmp.ut_line)] = '\0';



Home | Main Index | Thread Index | Old Index