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

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/net_ads.c
source3/utils/net_dom.c

index cee36cf0fb787cc6463ca2bc8392ab471069d16d..3e8bd2d4304ea2e57feda0707617113f20aac89a 100644 (file)
@@ -1459,7 +1459,7 @@ int net_ads_join(struct net_context *c, int argc, const char **argv)
        TALLOC_CTX *ctx = NULL;
        struct libnet_JoinCtx *r = NULL;
        const char *domain = lp_realm();
-       WERROR werr = WERR_SETUP_NOT_JOINED;
+       WERROR werr = WERR_NERR_SETUPNOTJOINED;
        bool createupn = false;
        const char *machineupn = NULL;
        const char *machine_password = NULL;
index b2f02a4f4f7645cf0553070b3ec0f6a152e918a3..1e45c59220c014ab7cabbfce2a5f77eb0096efb5 100644 (file)
@@ -299,7 +299,7 @@ static int net_dom_renamecomputer(struct net_context *c, int argc, const char **
                                          account, password, rename_options);
        if (status != 0) {
                printf(_("Failed to rename machine: "));
-               if (status == W_ERROR_V(WERR_SETUP_NOT_JOINED)) {
+               if (status == W_ERROR_V(WERR_NERR_SETUPNOTJOINED)) {
                        printf(_("Computer is not joined to a Domain\n"));
                        goto done;
                }