Imported Upstream version 1.7.6p1
[debian/sudo] / auth / bsdauth.c
index 2539713acf23726aa27cc09bb107f29b947b5eb0..727df13b08fab31533f4665ae5fa9037ee27bfab 100644 (file)
@@ -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;
 }