klogd: code de-obfuscation with small code size reduction
[oweals/busybox.git] / loginutils / sulogin.c
index 30f9d9350a600a7434dade20f454508f12a561d7..8e3095c87dfdeda1234633faafa544d79c8f3dc0 100644 (file)
@@ -34,6 +34,7 @@ static void catchalarm(int ATTRIBUTE_UNUSED junk)
 }
 
 
+int sulogin_main(int argc, char **argv);
 int sulogin_main(int argc, char **argv)
 {
        char *cp;
@@ -74,13 +75,15 @@ int sulogin_main(int argc, char **argv)
                goto auth_error;
        }
 
-       if (ENABLE_FEATURE_SHADOWPASSWDS) {
+#if ENABLE_FEATURE_SHADOWPASSWDS
+       {
                struct spwd *spwd = getspnam(pwd->pw_name);
                if (!spwd) {
                        goto auth_error;
                }
                pwd->pw_passwd = spwd->sp_pwdp;
        }
+#endif
 
        while (1) {
                /* cp points to a static buffer that is zeroed every time */