standardize on "return foo;" rather than "return(foo);" or "return (foo);"
This commit is contained in:
@@ -59,12 +59,12 @@ secureware_init(struct passwd *pw, char **promptp, sudo_auth *auth)
|
||||
extern int crypt_type;
|
||||
|
||||
if (crypt_type == INT_MAX)
|
||||
return(AUTH_FAILURE); /* no shadow */
|
||||
return AUTH_FAILURE; /* no shadow */
|
||||
#endif
|
||||
sudo_setspent();
|
||||
auth->data = sudo_getepw(pw);
|
||||
sudo_endspent();
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
}
|
||||
|
||||
int
|
||||
@@ -76,22 +76,22 @@ secureware_verify(struct passwd *pw, char *pass, sudo_auth *auth)
|
||||
|
||||
# ifdef HAVE_DISPCRYPT
|
||||
if (strcmp(pw_epasswd, dispcrypt(pass, pw_epasswd, crypt_type)) == 0)
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
# else
|
||||
if (crypt_type == AUTH_CRYPT_BIGCRYPT) {
|
||||
if (strcmp(pw_epasswd, bigcrypt(pass, pw_epasswd)) == 0)
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
} else if (crypt_type == AUTH_CRYPT_CRYPT16) {
|
||||
if (strcmp(pw_epasswd, crypt(pass, pw_epasswd)) == 0)
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
}
|
||||
# endif /* HAVE_DISPCRYPT */
|
||||
#elif defined(HAVE_BIGCRYPT)
|
||||
if (strcmp(pw_epasswd, bigcrypt(pass, pw_epasswd)) == 0)
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
#endif /* __alpha */
|
||||
|
||||
return(AUTH_FAILURE);
|
||||
return AUTH_FAILURE;
|
||||
}
|
||||
|
||||
int
|
||||
@@ -105,5 +105,5 @@ secureware_cleanup(pw, auth)
|
||||
zero_bytes(pw_epasswd, strlen(pw_epasswd));
|
||||
efree(pw_epasswd);
|
||||
}
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user