werror: replace WERR_RPC_E_REMOTE_DISABLED with HRES_RPC_E_REMOTE_DISABLED
authorGünther Deschner <gd@samba.org>
Fri, 11 Dec 2015 23:15:45 +0000 (00:15 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:35 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/rpc/wkssvc.c

index e19523f172e78551ecd2f89611235e1dbfd32dd2..aebabac8d1e56f7f3e9b3363d9b6cb25c1eae414 100644 (file)
@@ -653,7 +653,7 @@ static bool test_NetrValidateName2(struct torture_context *tctx,
                torture_assert_ntstatus_ok(tctx, status,
                                           "NetrValidateName2 failed");
                torture_assert_werr_equal(tctx, r.out.result,
-                                         WERR_RPC_E_REMOTE_DISABLED,
+                                         W_ERROR(HRES_ERROR_V(HRES_RPC_E_REMOTE_DISABLED)),
                                          "NetrValidateName2 failed");
        }
 
@@ -1113,7 +1113,7 @@ static bool test_NetrGetJoinableOus2(struct torture_context *tctx,
        status = dcerpc_wkssvc_NetrGetJoinableOus2_r(b, tctx, &r);
        torture_assert_ntstatus_ok(tctx, status, "NetrGetJoinableOus2 failed");
        torture_assert_werr_equal(tctx, r.out.result,
-                                 WERR_RPC_E_REMOTE_DISABLED,
+                                 W_ERROR(HRES_ERROR_V(HRES_RPC_E_REMOTE_DISABLED)),
                                  "NetrGetJoinableOus2 failed");
 
        return true;