mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
3e0b394536
commit
2324d9cd32
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user