summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2015-12-03 15:24:20 +0100
committerJeremy Allison <jra@samba.org>2016-09-28 00:04:20 +0200
commit2324d9cd32cfba5902df9d373715427193835c7c (patch)
tree5393c45728ea558b1515c5095113cc23356c4db7 /source3/lib/netapi
parent3e0b39453634e4e2e5aa83c3ba3e2c375c98554a (diff)
downloadsamba-2324d9cd32cfba5902df9d373715427193835c7c.tar.gz
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/lib/netapi/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/group.c4
-rw-r--r--source3/lib/netapi/joindomain.c2
-rw-r--r--source3/lib/netapi/netapi.c4
-rw-r--r--source3/lib/netapi/user.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/netapi/group.c b/source3/lib/netapi/group.c
index bfe652eede7..06efd7043f9 100644
--- a/source3/lib/netapi/group.c
+++ b/source3/lib/netapi/group.c
@@ -1896,7 +1896,7 @@ WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx,
if (!add_rid_to_array_unique(ctx,
member_rids[i],
&add_rids, &num_add_rids)) {
- werr = WERR_GENERAL_FAILURE;
+ werr = WERR_GEN_FAILURE;
goto done;
}
}
@@ -1916,7 +1916,7 @@ WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx,
if (!add_rid_to_array_unique(ctx,
rid_array->rids[k],
&del_rids, &num_del_rids)) {
- werr = WERR_GENERAL_FAILURE;
+ werr = WERR_GEN_FAILURE;
goto done;
}
}
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index f90a03070d6..86b8b1ade53 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -412,7 +412,7 @@ WERROR NetGetJoinableOUs_l(struct libnetapi_ctx *ctx,
ads = ads_init(info->domain_name, info->domain_name, dc);
if (!ads) {
- return WERR_GENERAL_FAILURE;
+ return WERR_GEN_FAILURE;
}
SAFE_FREE(ads->auth.user_name);
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c
index 35dbcc7a218..b4596f864fb 100644
--- a/source3/lib/netapi/netapi.c
+++ b/source3/lib/netapi/netapi.c
@@ -77,7 +77,7 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
if (!lp_load_global(get_dyn_CONFIGFILE())) {
TALLOC_FREE(frame);
fprintf(stderr, "error loading %s\n", get_dyn_CONFIGFILE() );
- return W_ERROR_V(WERR_GENERAL_FAILURE);
+ return W_ERROR_V(WERR_GEN_FAILURE);
}
init_names();
@@ -207,7 +207,7 @@ NET_API_STATUS libnetapi_set_debuglevel(struct libnetapi_ctx *ctx,
if (!lp_set_cmdline("log level", debuglevel)) {
TALLOC_FREE(frame);
- return W_ERROR_V(WERR_GENERAL_FAILURE);
+ return W_ERROR_V(WERR_GEN_FAILURE);
}
TALLOC_FREE(frame);
return NET_API_STATUS_SUCCESS;
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index 19f6f7c196f..fe190a25558 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -3345,7 +3345,7 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
if (!add_rid_to_array_unique(ctx,
member_rids[i],
&add_rids, &num_add_rids)) {
- werr = WERR_GENERAL_FAILURE;
+ werr = WERR_GEN_FAILURE;
goto done;
}
}
@@ -3365,7 +3365,7 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
if (!add_rid_to_array_unique(ctx,
rid_array->rids[k].rid,
&del_rids, &num_del_rids)) {
- werr = WERR_GENERAL_FAILURE;
+ werr = WERR_GEN_FAILURE;
goto done;
}
}