diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-02-01 19:52:41 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-02-01 19:52:41 +0000 |
commit | a3fcd162868289dae82de8fb69abae8a62606403 (patch) | |
tree | 612ef5af966a14e2faaf5af596ad086d97e01c26 /usr.bin/getent | |
parent | a57bd7b95226a1072c3f92f8e38c857897263ebc (diff) |
Pointless #define
was:
#define SHELLSPRINT printf("%s\n", sh)
Diffstat (limited to 'usr.bin/getent')
-rw-r--r-- | usr.bin/getent/getent.c | 8 |
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; } } |