1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER 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:
Günther Deschner
2015-12-03 15:24:23 +01:00
committed by Jeremy Allison
parent 3a33b6652d
commit 9bde08f153
11 changed files with 43 additions and 43 deletions

View File

@ -73,7 +73,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
NTSTATUS status; NTSTATUS status;
if (!ctx || !pp || !server_name) { if (!ctx || !pp || !server_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
priv_ctx = (struct libnetapi_private_ctx *)ctx->private_data; priv_ctx = (struct libnetapi_private_ctx *)ctx->private_data;
@ -239,7 +239,7 @@ WERROR libnetapi_open_pipe(struct libnetapi_ctx *ctx,
struct client_ipc_connection *ipc = NULL; struct client_ipc_connection *ipc = NULL;
if (!presult) { if (!presult) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
werr = libnetapi_open_ipc_connection(ctx, server_name, &ipc); werr = libnetapi_open_ipc_connection(ctx, server_name, &ipc);

View File

@ -118,7 +118,7 @@ WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -189,7 +189,7 @@ WERROR NetFileEnum_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {

View File

@ -54,7 +54,7 @@ WERROR NetGroupAdd_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -268,7 +268,7 @@ WERROR NetGroupDel_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
werr = libnetapi_open_pipe(ctx, r->in.server_name, werr = libnetapi_open_pipe(ctx, r->in.server_name,
@ -488,7 +488,7 @@ WERROR NetGroupSetInfo_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
werr = libnetapi_open_pipe(ctx, r->in.server_name, werr = libnetapi_open_pipe(ctx, r->in.server_name,
@ -766,7 +766,7 @@ WERROR NetGroupGetInfo_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
werr = libnetapi_open_pipe(ctx, r->in.server_name, werr = libnetapi_open_pipe(ctx, r->in.server_name,
@ -914,7 +914,7 @@ WERROR NetGroupAddUser_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
werr = libnetapi_open_pipe(ctx, r->in.server_name, werr = libnetapi_open_pipe(ctx, r->in.server_name,
@ -1074,7 +1074,7 @@ WERROR NetGroupDelUser_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
werr = libnetapi_open_pipe(ctx, r->in.server_name, werr = libnetapi_open_pipe(ctx, r->in.server_name,
@ -1527,7 +1527,7 @@ WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
*r->out.buffer = NULL; *r->out.buffer = NULL;
@ -1724,7 +1724,7 @@ WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {

View File

@ -44,7 +44,7 @@ WERROR NetJoinDomain_l(struct libnetapi_ctx *mem_ctx,
struct libnetapi_private_ctx); struct libnetapi_private_ctx);
if (!r->in.domain) { if (!r->in.domain) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
werr = libnet_init_JoinCtx(mem_ctx, &j); werr = libnet_init_JoinCtx(mem_ctx, &j);

View File

@ -162,7 +162,7 @@ WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx,
const char *alias_name = NULL; const char *alias_name = NULL;
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
ZERO_STRUCT(connect_handle); ZERO_STRUCT(connect_handle);
@ -310,7 +310,7 @@ WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b = NULL; struct dcerpc_binding_handle *b = NULL;
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
ZERO_STRUCT(connect_handle); ZERO_STRUCT(connect_handle);
@ -481,7 +481,7 @@ WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b = NULL; struct dcerpc_binding_handle *b = NULL;
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -660,7 +660,7 @@ WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b = NULL; struct dcerpc_binding_handle *b = NULL;
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -804,7 +804,7 @@ WERROR NetLocalGroupEnum_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b = NULL; struct dcerpc_binding_handle *b = NULL;
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -1085,7 +1085,7 @@ static WERROR NetLocalGroupModifyMembers_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b = NULL; struct dcerpc_binding_handle *b = NULL;
if ((!add && !del && !set) || (add && del && set)) { if ((!add && !del && !set) || (add && del && set)) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
if (add) { if (add) {
@ -1101,7 +1101,7 @@ static WERROR NetLocalGroupModifyMembers_r(struct libnetapi_ctx *ctx,
} }
if (!r->in.group_name) { if (!r->in.group_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -1113,7 +1113,7 @@ static WERROR NetLocalGroupModifyMembers_r(struct libnetapi_ctx *ctx,
} }
if (r->in.total_entries == 0 || !r->in.buffer) { if (r->in.total_entries == 0 || !r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
ZERO_STRUCT(connect_handle); ZERO_STRUCT(connect_handle);

View File

@ -34,7 +34,7 @@ static NET_API_STATUS libnetapi_init_private_context(struct libnetapi_ctx *ctx)
struct libnetapi_private_ctx *priv; struct libnetapi_private_ctx *priv;
if (!ctx) { if (!ctx) {
return W_ERROR_V(WERR_INVALID_PARAM); return W_ERROR_V(WERR_INVALID_PARAMETER);
} }
priv = talloc_zero(ctx, struct libnetapi_private_ctx); priv = talloc_zero(ctx, struct libnetapi_private_ctx);

View File

@ -47,7 +47,7 @@ static WERROR construct_data(enum netr_LogonControlCode function_code,
ZERO_STRUCTP(data_out); ZERO_STRUCTP(data_out);
break; break;
default: default:
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
return WERR_OK; return WERR_OK;
@ -64,7 +64,7 @@ static WERROR construct_buffer(TALLOC_CTX *mem_ctx,
struct NETLOGON_INFO_4 *i4; struct NETLOGON_INFO_4 *i4;
if (!q) { if (!q) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (level) { switch (level) {

View File

@ -486,7 +486,7 @@ WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -547,14 +547,14 @@ static WERROR NetServerSetInfo_l_1005(struct libnetapi_ctx *ctx,
if (!r->in.buffer) { if (!r->in.buffer) {
*r->out.parm_error = 1005; /* sure here ? */ *r->out.parm_error = 1005; /* sure here ? */
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
info1005 = (struct srvsvc_NetSrvInfo1005 *)r->in.buffer; info1005 = (struct srvsvc_NetSrvInfo1005 *)r->in.buffer;
if (!info1005->comment) { if (!info1005->comment) {
*r->out.parm_error = 1005; *r->out.parm_error = 1005;
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
if (!lp_config_backend_is_registry()) { if (!lp_config_backend_is_registry()) {

View File

@ -212,7 +212,7 @@ WERROR NetShareAdd_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -280,7 +280,7 @@ WERROR NetShareDel_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->in.net_name) { if (!r->in.net_name) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
werr = libnetapi_get_binding_handle(ctx, r->in.server_name, werr = libnetapi_get_binding_handle(ctx, r->in.server_name,
@ -329,7 +329,7 @@ WERROR NetShareEnum_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -436,7 +436,7 @@ WERROR NetShareGetInfo_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->in.net_name || !r->out.buffer) { if (!r->in.net_name || !r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -509,7 +509,7 @@ WERROR NetShareSetInfo_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {

View File

@ -385,7 +385,7 @@ WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(user_handle); ZERO_STRUCT(user_handle);
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -466,7 +466,7 @@ WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
} }
if (!(user_info->info16.acct_flags & ACB_NORMAL)) { if (!(user_info->info16.acct_flags & ACB_NORMAL)) {
werr = WERR_INVALID_PARAM; werr = WERR_INVALID_PARAMETER;
goto done; goto done;
} }
@ -1297,7 +1297,7 @@ WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(builtin_handle); ZERO_STRUCT(builtin_handle);
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
*r->out.buffer = NULL; *r->out.buffer = NULL;
@ -1741,7 +1741,7 @@ WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(user_handle); ZERO_STRUCT(user_handle);
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -1879,7 +1879,7 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(user_handle); ZERO_STRUCT(user_handle);
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -2371,7 +2371,7 @@ WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(domain_handle); ZERO_STRUCT(domain_handle);
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -2843,7 +2843,7 @@ WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(domain_handle); ZERO_STRUCT(domain_handle);
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -2996,7 +2996,7 @@ WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(domain_handle); ZERO_STRUCT(domain_handle);
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
*r->out.buffer = NULL; *r->out.buffer = NULL;
@ -3191,7 +3191,7 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(group_handle); ZERO_STRUCT(group_handle);
if (!r->in.buffer) { if (!r->in.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {
@ -3528,7 +3528,7 @@ WERROR NetUserGetLocalGroups_r(struct libnetapi_ctx *ctx,
ZERO_STRUCT(domain_handle); ZERO_STRUCT(domain_handle);
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
*r->out.buffer = NULL; *r->out.buffer = NULL;

View File

@ -109,7 +109,7 @@ WERROR NetWkstaGetInfo_r(struct libnetapi_ctx *ctx,
struct dcerpc_binding_handle *b; struct dcerpc_binding_handle *b;
if (!r->out.buffer) { if (!r->out.buffer) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
switch (r->in.level) { switch (r->in.level) {