summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-04-15 02:12:00 +0000
committerderaadt <deraadt@openbsd.org>2015-04-15 02:12:00 +0000
commitd894371855b71294622300dae9d132e10b0f0d8d (patch)
treed9e112c7b1706b00384cb0e7cd903ae0efec8d43
parentIt feels like this Makefile should contain -Wall at least (diff)
downloadwireguard-openbsd-d894371855b71294622300dae9d132e10b0f0d8d.tar.xz
wireguard-openbsd-d894371855b71294622300dae9d132e10b0f0d8d.zip
remove historical (void)foo (which were only here to hide lint's
undrenchable thirst for false positives)
-rw-r--r--usr.bin/su/su.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index b6869bccd62..7d88768f62f 100644
--- a/usr.bin/su/su.c
+++ b/usr.bin/su/su.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: su.c,v 1.66 2015/01/16 06:40:13 deraadt Exp $ */
+/* $OpenBSD: su.c,v 1.67 2015/04/15 02:12:00 deraadt Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -118,7 +118,7 @@ main(int argc, char **argv)
prio = getpriority(PRIO_PROCESS, 0);
if (errno)
prio = 0;
- (void)setpriority(PRIO_PROCESS, 0, -2);
+ setpriority(PRIO_PROCESS, 0, -2);
openlog("su", LOG_CONS, 0);
if ((as = auth_open()) == NULL) {
@@ -254,8 +254,8 @@ main(int argc, char **argv)
if (login_getcapbool(lc, "requirehome", 0)) {
auth_err(as, 1, "%s", pwd->pw_dir);
} else {
- (void)printf("No home directory %s!\n", pwd->pw_dir);
- (void)printf("Logging in with home = \"/\".\n");
+ printf("No home directory %s!\n", pwd->pw_dir);
+ printf("Logging in with home = \"/\".\n");
if (chdir("/") < 0)
auth_err(as, 1, "/");
}
@@ -305,7 +305,7 @@ main(int argc, char **argv)
syslog(LOG_NOTICE|LOG_AUTH, "%s to %s%s",
username, user, ontty());
- (void)setpriority(PRIO_PROCESS, 0, prio);
+ setpriority(PRIO_PROCESS, 0, prio);
if (emlogin) {
flags = LOGIN_SETALL & ~LOGIN_SETPATH;
/*
@@ -417,7 +417,7 @@ getloginname(void)
int ch;
for (;;) {
- (void)printf("login: ");
+ printf("login: ");
for (p = nbuf; (ch = getchar()) != '\n'; ) {
if (ch == EOF)
return (NULL);
@@ -426,7 +426,7 @@ getloginname(void)
}
if (p > nbuf) {
if (nbuf[0] == '-') {
- (void)fprintf(stderr,
+ fprintf(stderr,
"login names may not start with '-'.\n");
} else {
*p = '\0';