aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/logname.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/toys/posix/logname.c b/toys/posix/logname.c
index 65994d20..6ebdb329 100644
--- a/toys/posix/logname.c
+++ b/toys/posix/logname.c
@@ -22,8 +22,6 @@ config LOGNAME
void logname_main(void)
{
- if (getlogin_r(toybuf, sizeof(toybuf))){
- error_exit("no login name");
- }
+ if (getlogin_r(toybuf, sizeof(toybuf))) error_exit("no login name");
xputs(toybuf);
}