NGIRCd_getNobodyID(): Code cleanup
authorAlexander Barton <alex@barton.de>
Tue, 3 Jan 2012 19:49:42 +0000 (20:49 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 3 Jan 2012 19:49:42 +0000 (20:49 +0100)
src/ngircd/ngircd.c

index 170a3cd7eef1b55f136ebda3ce79f1c231e146d9..ec2462aeb1d38abd7dc98ad1555c223c794bfb79 100644 (file)
@@ -555,9 +555,10 @@ NGIRCd_getNobodyID(uid_t *uid, gid_t *gid )
 #endif
 
        pwd = getpwnam("nobody");
-       if (!pwd) return false;
+       if (!pwd)
+               return false;
 
-       if ( !pwd->pw_uid || !pwd->pw_gid)
+       if (!pwd->pw_uid || !pwd->pw_gid)
                return false;
 
        *uid = pwd->pw_uid;