werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/rpcclient/
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:21 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:21 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpcclient/cmd_netlogon.c
source3/rpcclient/cmd_spoolss.c
source3/rpcclient/cmd_winreg.c

index e7a66dea028f5959ce1972fa7f8898f2b6770f15..f65717287f425859714209c4d438c01df8cff2d0 100644 (file)
@@ -856,7 +856,7 @@ static WERROR cmd_netlogon_gettrustrid(struct rpc_pipe_client *cli,
                                       const char **argv)
 {
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
-       WERROR werr = WERR_GENERAL_FAILURE;
+       WERROR werr = WERR_GEN_FAILURE;
        const char *server_name = cli->desthost;
        const char *domain_name = lp_workgroup();
        uint32_t rid = 0;
@@ -898,7 +898,7 @@ static WERROR cmd_netlogon_dsr_enumtrustdom(struct rpc_pipe_client *cli,
                                            const char **argv)
 {
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
-       WERROR werr = WERR_GENERAL_FAILURE;
+       WERROR werr = WERR_GEN_FAILURE;
        const char *server_name = cli->desthost;
        uint32_t trust_flags = NETR_TRUST_FLAG_IN_FOREST;
        struct netr_DomainTrustList trusts;
@@ -948,7 +948,7 @@ static WERROR cmd_netlogon_deregisterdnsrecords(struct rpc_pipe_client *cli,
                                                const char **argv)
 {
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
-       WERROR werr = WERR_GENERAL_FAILURE;
+       WERROR werr = WERR_GEN_FAILURE;
        const char *server_name = cli->desthost;
        const char *domain = lp_workgroup();
        const char *dns_host = NULL;
@@ -996,7 +996,7 @@ static WERROR cmd_netlogon_dsr_getforesttrustinfo(struct rpc_pipe_client *cli,
                                                  const char **argv)
 {
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
-       WERROR werr = WERR_GENERAL_FAILURE;
+       WERROR werr = WERR_GEN_FAILURE;
        const char *server_name = cli->desthost;
        const char *trusted_domain_name = NULL;
        struct lsa_ForestTrustInformation *info = NULL;
@@ -1083,7 +1083,7 @@ static WERROR cmd_netlogon_enumtrusteddomainsex(struct rpc_pipe_client *cli,
                                                const char **argv)
 {
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
-       WERROR werr = WERR_GENERAL_FAILURE;
+       WERROR werr = WERR_GEN_FAILURE;
        const char *server_name = cli->desthost;
        struct netr_DomainTrustList list;
        struct dcerpc_binding_handle *b = cli->binding_handle;
@@ -1118,7 +1118,7 @@ static WERROR cmd_netlogon_getdcsitecoverage(struct rpc_pipe_client *cli,
                                             const char **argv)
 {
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
-       WERROR werr = WERR_GENERAL_FAILURE;
+       WERROR werr = WERR_GEN_FAILURE;
        const char *server_name = cli->desthost;
        struct DcSitesCtr *ctr = NULL;
        struct dcerpc_binding_handle *b = cli->binding_handle;
index f6bf2da7b4c976ad3229033224df1899e925fb5f..6793bf1e0ab3748e24dcac2d3ab1d4f2194b9b32 100644 (file)
@@ -3528,14 +3528,14 @@ static WERROR cmd_spoolss_printercmp(struct rpc_pipe_client *cli,
                                        get_cmdline_auth_info_signing_state(rpcclient_auth_info));
 
        if ( !NT_STATUS_IS_OK(nt_status) )
-               return WERR_GENERAL_FAILURE;
+               return WERR_GEN_FAILURE;
 
        nt_status = cli_rpc_pipe_open_noauth(cli_server2, &ndr_table_spoolss,
                                             &cli2);
        if (!NT_STATUS_IS_OK(nt_status)) {
                printf("failed to open spoolss pipe on server %s (%s)\n",
                        argv[2], nt_errstr(nt_status));
-               return WERR_GENERAL_FAILURE;
+               return WERR_GEN_FAILURE;
        }
 
        /* now open up both printers */
index 7931d85d244a635a9d55e5c5c44fb123eceb4f5a..6006cab1ac62fda406e738b4a0ee3c32c014cd02 100644 (file)
@@ -86,7 +86,7 @@ static WERROR pull_winreg_Data(TALLOC_CTX *mem_ctx,
        ndr_err = ndr_pull_union_blob(blob, mem_ctx, data, type,
                        (ndr_pull_flags_fn_t)ndr_pull_winreg_Data);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
-               return WERR_GENERAL_FAILURE;
+               return WERR_GEN_FAILURE;
        }
        return WERR_OK;
 }