X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=auth%2Fbsdauth.c;h=727df13b08fab31533f4665ae5fa9037ee27bfab;hb=f3530d8198251b72d01da9a07b1fa518446ec0f0;hp=2539713acf23726aa27cc09bb107f29b947b5eb0;hpb=a91c5f78701b90c47a08daa15569ef64c6194504;p=debian%2Fsudo diff --git a/auth/bsdauth.c b/auth/bsdauth.c index 2539713..727df13 100644 --- a/auth/bsdauth.c +++ b/auth/bsdauth.c @@ -65,7 +65,7 @@ bsdauth_init(pw, promptp, auth) if ((as = auth_open()) == NULL) { log_error(USE_ERRNO|NO_EXIT|NO_MAIL, "unable to begin bsd authentication"); - return(AUTH_FATAL); + return AUTH_FATAL; } /* XXX - maybe sanity check the auth style earlier? */ @@ -73,7 +73,7 @@ bsdauth_init(pw, promptp, auth) if (login_style == NULL) { log_error(NO_EXIT|NO_MAIL, "invalid authentication type"); auth_close(as); - return(AUTH_FATAL); + return AUTH_FATAL; } if (auth_setitem(as, AUTHV_STYLE, login_style) < 0 || @@ -81,11 +81,11 @@ bsdauth_init(pw, promptp, auth) auth_setitem(as, AUTHV_CLASS, login_class) < 0) { log_error(NO_EXIT|NO_MAIL, "unable to setup authentication"); auth_close(as); - return(AUTH_FATAL); + return AUTH_FATAL; } auth->data = (void *) as; - return(AUTH_SUCCESS); + return AUTH_SUCCESS; } int @@ -146,14 +146,14 @@ bsdauth_verify(pw, prompt, auth) (void) sigaction(SIGCHLD, &osa, NULL); if (authok) - return(AUTH_SUCCESS); + return AUTH_SUCCESS; if (!pass) - return(AUTH_INTR); + return AUTH_INTR; if ((s = auth_getvalue(as, "errormsg")) != NULL) log_error(NO_EXIT|NO_MAIL, "%s", s); - return(AUTH_FAILURE); + return AUTH_FAILURE; } int @@ -165,5 +165,5 @@ bsdauth_cleanup(pw, auth) auth_close(as); - return(AUTH_SUCCESS); + return AUTH_SUCCESS; }