aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/logname.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-10-06 19:01:23 -0500
committerRob Landley <rob@landley.net>2012-10-06 19:01:23 -0500
commit0ece44580b5caa1b09092222d8204c461c71f95f (patch)
treeccb4e0ae3ea56fba14f25c8912147dc0f33174bf /toys/posix/logname.c
parenta54733f76575e6e391da0f4735f847f4bb14efe5 (diff)
downloadtoybox-0ece44580b5caa1b09092222d8204c461c71f95f.tar.gz
Trivial cleanup
Diffstat (limited to 'toys/posix/logname.c')
-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);
}