summaryrefslogtreecommitdiff
path: root/usr.bin/wall
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2009-08-03 20:30:04 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2009-08-03 20:30:04 +0000
commit90e8147d75fa5c6a99f7adb7c82b80ada4edd020 (patch)
tree9f34eb8d2380d1cdcdb5b5105f052cc7d3dcf9b2 /usr.bin/wall
parentb5b3da52661ce7e2d99b9a64f6921e733010747c (diff)
It is sufficient to call getgrnam(3) once. Remove the first call.
ok millert
Diffstat (limited to 'usr.bin/wall')
-rw-r--r--usr.bin/wall/wall.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/wall/wall.c b/usr.bin/wall/wall.c
index 978737b91bc..4f34d7dde63 100644
--- a/usr.bin/wall/wall.c
+++ b/usr.bin/wall/wall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wall.c,v 1.23 2009/08/03 20:22:39 bluhm Exp $ */
+/* $OpenBSD: wall.c,v 1.24 2009/08/03 20:30:03 bluhm Exp $ */
/* $NetBSD: wall.c,v 1.6 1994/11/17 07:17:58 jtc Exp $ */
/*
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)wall.c 8.2 (Berkeley) 11/16/93";
#endif
-static const char rcsid[] = "$OpenBSD: wall.c,v 1.23 2009/08/03 20:22:39 bluhm Exp $";
+static const char rcsid[] = "$OpenBSD: wall.c,v 1.24 2009/08/03 20:30:03 bluhm Exp $";
#endif /* not lint */
/*
@@ -104,7 +104,6 @@ main(int argc, char **argv)
nobanner = 1;
break;
case 'g':
- grp = getgrnam(optarg);
if ((grp = getgrnam(optarg)) == NULL)
errx(1, "unknown group `%s'", optarg);
addgroup(grp, optarg);