summaryrefslogtreecommitdiffstats
path: root/usr.bin/users
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/users')
-rw-r--r--usr.bin/users/users.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/users/users.c b/usr.bin/users/users.c
index c13cc37..6be7e03 100644
--- a/usr.bin/users/users.c
+++ b/usr.bin/users/users.c
@@ -86,17 +86,17 @@ main(int argc, char **argv)
/* NOTREACHED */
}
}
- (void)strlcpy(names[ncnt], ut->ut_user, sizeof(*names));
+ strlcpy(names[ncnt], ut->ut_user, sizeof(*names));
++ncnt;
}
endutxent();
if (ncnt > 0) {
qsort(names, ncnt, sizeof(namebuf), scmp);
- (void)printf("%s", names[0]);
+ printf("%s", names[0]);
for (cnt = 1; cnt < ncnt; ++cnt)
if (strcmp(names[cnt], names[cnt - 1]) != 0)
- (void)printf(" %s", names[cnt]);
- (void)printf("\n");
+ printf(" %s", names[cnt]);
+ printf("\n");
}
exit(0);
}
@@ -104,7 +104,7 @@ main(int argc, char **argv)
static void
usage(void)
{
- (void)fprintf(stderr, "usage: users\n");
+ fprintf(stderr, "usage: users\n");
exit(1);
}
OpenPOWER on IntegriCloud