OSDN Git Service

Trivial cleanup
authorRob Landley <rob@landley.net>
Sun, 7 Oct 2012 00:01:23 +0000 (19:01 -0500)
committerRob Landley <rob@landley.net>
Sun, 7 Oct 2012 00:01:23 +0000 (19:01 -0500)
toys/posix/logname.c

index 65994d2..6ebdb32 100644 (file)
@@ -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);
 }