standardize on "return foo;" rather than "return(foo);" or "return (foo);"
This commit is contained in:
@@ -63,9 +63,9 @@ securid_init(struct passwd *pw, char **promptp, sudo_auth *auth)
|
||||
auth->data = (void *) &sd_dat; /* For method-specific data */
|
||||
|
||||
if (creadcfg() == 0)
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
else
|
||||
return(AUTH_FATAL);
|
||||
return AUTH_FATAL;
|
||||
}
|
||||
|
||||
int
|
||||
@@ -77,10 +77,10 @@ securid_setup(struct passwd *pw, char **promptp, sudo_auth *auth)
|
||||
if (sd_init(sd) == 0) {
|
||||
/* The programmer's guide says username is 32 bytes */
|
||||
strlcpy(sd->username, pw->pw_name, 32);
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
} else {
|
||||
warningx("unable to contact the SecurID server");
|
||||
return(AUTH_FATAL);
|
||||
return AUTH_FATAL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ securid_verify(struct passwd *pw, char *pass, sudo_auth *auth)
|
||||
rval = sd_auth(sd);
|
||||
sd_close();
|
||||
if (rval == ACM_OK)
|
||||
return(AUTH_SUCCESS);
|
||||
return AUTH_SUCCESS;
|
||||
else
|
||||
return(AUTH_FAILURE);
|
||||
return AUTH_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user