]> andersk Git - moira.git/commitdiff
Don't return MRCL_*; they're not in com_err's number space.
authorzacheiss <zacheiss>
Wed, 2 May 2001 21:23:39 +0000 (21:23 +0000)
committerzacheiss <zacheiss>
Wed, 2 May 2001 21:23:39 +0000 (21:23 +0000)
incremental/winad/winad.c

index 17d9d5daeee57a21722721eb53093ca17632a3a5..00a9cf5a37357fe7b28a2591c436928835147faa 100755 (executable)
@@ -2864,7 +2864,7 @@ int mr_connect_cl(char *server, char *client, int version, int auth)
   if (status)
     {
       com_err(whoami, status, "while connecting to Moira");
-      return MRCL_FAIL;
+      return status;
     }
 
   status = mr_motd(&motd);
@@ -2872,14 +2872,14 @@ int mr_connect_cl(char *server, char *client, int version, int auth)
     {
       mr_disconnect();
       com_err(whoami, status, "while checking server status");
-      return MRCL_FAIL;
+      return status;
     }
   if (motd)
     {
       sprintf(temp, "The Moira server is currently unavailable: %s", motd);
       com_err(whoami, status, temp);
       mr_disconnect();
-      return MRCL_FAIL;
+      return status;
     }
 
   status = mr_version(version);
@@ -2902,7 +2902,7 @@ int mr_connect_cl(char *server, char *client, int version, int auth)
         {
           com_err(whoami, status, "while setting query version number.");
           mr_disconnect();
-          return MRCL_FAIL;
+          return status;
         }
     }
 
@@ -2913,11 +2913,11 @@ int mr_connect_cl(char *server, char *client, int version, int auth)
         {
           com_err(whoami, status, "while authenticating to Moira.");
           mr_disconnect();
-          return MRCL_AUTH_ERROR;
+          return status;
         }
     }
 
-  return MRCL_SUCCESS;
+  return MR_SUCCESS;
 }
 
 void expand_groups(LDAP *ldap_handle, char *dn_path, char *group_name)
This page took 0.065071 seconds and 5 git commands to generate.