standardize on "return foo;" rather than "return(foo);" or "return (foo);"

This commit is contained in:
Todd C. Miller
2011-01-24 15:15:18 -05:00
parent 3316ac8ebc
commit ae2f7638f5
68 changed files with 843 additions and 843 deletions

View File

@@ -57,25 +57,25 @@ fwtk_init(struct passwd *pw, char **promptp, sudo_auth *auth)
if ((confp = cfg_read("sudo")) == (Cfg *)-1) {
warningx("cannot read fwtk config");
return(AUTH_FATAL);
return AUTH_FATAL;
}
if (auth_open(confp)) {
warningx("cannot connect to authentication server");
return(AUTH_FATAL);
return AUTH_FATAL;
}
/* Get welcome message from auth server */
if (auth_recv(resp, sizeof(resp))) {
warningx("lost connection to authentication server");
return(AUTH_FATAL);
return AUTH_FATAL;
}
if (strncmp(resp, "Authsrv ready", 13) != 0) {
warningx("authentication server error:\n%s", resp);
return(AUTH_FATAL);
return AUTH_FATAL;
}
return(AUTH_SUCCESS);
return AUTH_SUCCESS;
}
int
@@ -91,7 +91,7 @@ fwtk_verify(struct passwd *pw, char *prompt, sudo_auth *auth)
restart:
if (auth_send(buf) || auth_recv(resp, sizeof(resp))) {
warningx("lost connection to authentication server");
return(AUTH_FATAL);
return AUTH_FATAL;
}
/* Get the password/response from the user. */
@@ -114,10 +114,10 @@ restart:
goto restart;
} else {
warningx("%s", resp);
return(AUTH_FATAL);
return AUTH_FATAL;
}
if (!pass) { /* ^C or error */
return(AUTH_INTR);
return AUTH_INTR;
}
/* Send the user's response to the server */
@@ -140,7 +140,7 @@ restart:
done:
zero_bytes(pass, strlen(pass));
zero_bytes(buf, strlen(buf));
return(error);
return error;
}
int
@@ -148,5 +148,5 @@ fwtk_cleanup(struct passwd *pw, sudo_auth *auth)
{
auth_close();
return(AUTH_SUCCESS);
return AUTH_SUCCESS;
}