summaryrefslogtreecommitdiff
path: root/usr.bin/getent/getent.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/getent/getent.c')
-rw-r--r--usr.bin/getent/getent.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/getent/getent.c b/usr.bin/getent/getent.c
index 3b2f30df89c..c6f357a0c03 100644
--- a/usr.bin/getent/getent.c
+++ b/usr.bin/getent/getent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getent.c,v 1.12 2015/10/10 21:50:05 doug Exp $ */
+/* $OpenBSD: getent.c,v 1.13 2016/02/01 19:52:40 jca Exp $ */
/* $NetBSD: getent.c,v 1.7 2005/08/24 14:31:02 ginsbach Exp $ */
/*-
@@ -439,8 +439,6 @@ services(int argc, char *argv[])
return rv;
}
-#define SHELLSPRINT printf("%s\n", sh)
-
static int
shells(int argc, char *argv[])
{
@@ -450,13 +448,13 @@ shells(int argc, char *argv[])
setusershell();
if (argc == 2) {
while ((sh = getusershell()) != NULL)
- SHELLSPRINT;
+ printf("%s\n", sh);
} else {
for (i = 2; i < argc; i++) {
setusershell();
while ((sh = getusershell()) != NULL) {
if (strcmp(sh, argv[i]) == 0) {
- SHELLSPRINT;
+ printf("%s\n", sh);
break;
}
}