From 9bde08f153ab94c28f3987e0bd6bccff6331ad6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Thu, 3 Dec 2015 15:24:23 +0100 Subject: werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source3/lib/netapi/ Guenther Signed-off-by: Guenther Deschner Reviewed-by: Jeremy Allison --- source3/lib/netapi/cm.c | 4 ++-- source3/lib/netapi/file.c | 4 ++-- source3/lib/netapi/group.c | 16 ++++++++-------- source3/lib/netapi/joindomain.c | 2 +- source3/lib/netapi/localgroup.c | 16 ++++++++-------- source3/lib/netapi/netapi.c | 2 +- source3/lib/netapi/netlogon.c | 4 ++-- source3/lib/netapi/serverinfo.c | 6 +++--- source3/lib/netapi/share.c | 10 +++++----- source3/lib/netapi/user.c | 20 ++++++++++---------- source3/lib/netapi/wkstainfo.c | 2 +- 11 files changed, 43 insertions(+), 43 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c index a98cf7f078d..bc50f94bab8 100644 --- a/source3/lib/netapi/cm.c +++ b/source3/lib/netapi/cm.c @@ -73,7 +73,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx, NTSTATUS status; if (!ctx || !pp || !server_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } 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; if (!presult) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } werr = libnetapi_open_ipc_connection(ctx, server_name, &ipc); diff --git a/source3/lib/netapi/file.c b/source3/lib/netapi/file.c index 99541b97578..eeecab4ffc6 100644 --- a/source3/lib/netapi/file.c +++ b/source3/lib/netapi/file.c @@ -118,7 +118,7 @@ WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b; if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -189,7 +189,7 @@ WERROR NetFileEnum_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b; if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { diff --git a/source3/lib/netapi/group.c b/source3/lib/netapi/group.c index 06efd7043f9..d1d861b552d 100644 --- a/source3/lib/netapi/group.c +++ b/source3/lib/netapi/group.c @@ -54,7 +54,7 @@ WERROR NetGroupAdd_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -268,7 +268,7 @@ WERROR NetGroupDel_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } werr = libnetapi_open_pipe(ctx, r->in.server_name, @@ -488,7 +488,7 @@ WERROR NetGroupSetInfo_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } werr = libnetapi_open_pipe(ctx, r->in.server_name, @@ -766,7 +766,7 @@ WERROR NetGroupGetInfo_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } werr = libnetapi_open_pipe(ctx, r->in.server_name, @@ -914,7 +914,7 @@ WERROR NetGroupAddUser_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } werr = libnetapi_open_pipe(ctx, r->in.server_name, @@ -1074,7 +1074,7 @@ WERROR NetGroupDelUser_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } werr = libnetapi_open_pipe(ctx, r->in.server_name, @@ -1527,7 +1527,7 @@ WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } *r->out.buffer = NULL; @@ -1724,7 +1724,7 @@ WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c index 86b8b1ade53..8d779cb842f 100644 --- a/source3/lib/netapi/joindomain.c +++ b/source3/lib/netapi/joindomain.c @@ -44,7 +44,7 @@ WERROR NetJoinDomain_l(struct libnetapi_ctx *mem_ctx, struct libnetapi_private_ctx); if (!r->in.domain) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } werr = libnet_init_JoinCtx(mem_ctx, &j); diff --git a/source3/lib/netapi/localgroup.c b/source3/lib/netapi/localgroup.c index 241970da3c8..e8a0e2b9529 100644 --- a/source3/lib/netapi/localgroup.c +++ b/source3/lib/netapi/localgroup.c @@ -162,7 +162,7 @@ WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx, const char *alias_name = NULL; if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } ZERO_STRUCT(connect_handle); @@ -310,7 +310,7 @@ WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b = NULL; if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } ZERO_STRUCT(connect_handle); @@ -481,7 +481,7 @@ WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b = NULL; if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -660,7 +660,7 @@ WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b = NULL; if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -804,7 +804,7 @@ WERROR NetLocalGroupEnum_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b = NULL; if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -1085,7 +1085,7 @@ static WERROR NetLocalGroupModifyMembers_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b = NULL; if ((!add && !del && !set) || (add && del && set)) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } if (add) { @@ -1101,7 +1101,7 @@ static WERROR NetLocalGroupModifyMembers_r(struct libnetapi_ctx *ctx, } if (!r->in.group_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } 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) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } ZERO_STRUCT(connect_handle); diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index b4596f864fb..3ed72952821 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -34,7 +34,7 @@ static NET_API_STATUS libnetapi_init_private_context(struct libnetapi_ctx *ctx) struct libnetapi_private_ctx *priv; if (!ctx) { - return W_ERROR_V(WERR_INVALID_PARAM); + return W_ERROR_V(WERR_INVALID_PARAMETER); } priv = talloc_zero(ctx, struct libnetapi_private_ctx); diff --git a/source3/lib/netapi/netlogon.c b/source3/lib/netapi/netlogon.c index 136cb488844..04f9dc1967b 100644 --- a/source3/lib/netapi/netlogon.c +++ b/source3/lib/netapi/netlogon.c @@ -47,7 +47,7 @@ static WERROR construct_data(enum netr_LogonControlCode function_code, ZERO_STRUCTP(data_out); break; default: - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } return WERR_OK; @@ -64,7 +64,7 @@ static WERROR construct_buffer(TALLOC_CTX *mem_ctx, struct NETLOGON_INFO_4 *i4; if (!q) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (level) { diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c index 35238e5b8c8..1053f807e15 100644 --- a/source3/lib/netapi/serverinfo.c +++ b/source3/lib/netapi/serverinfo.c @@ -486,7 +486,7 @@ WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b; if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -547,14 +547,14 @@ static WERROR NetServerSetInfo_l_1005(struct libnetapi_ctx *ctx, if (!r->in.buffer) { *r->out.parm_error = 1005; /* sure here ? */ - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } info1005 = (struct srvsvc_NetSrvInfo1005 *)r->in.buffer; if (!info1005->comment) { *r->out.parm_error = 1005; - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } if (!lp_config_backend_is_registry()) { diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c index 1694a279c0f..3acd780b004 100644 --- a/source3/lib/netapi/share.c +++ b/source3/lib/netapi/share.c @@ -212,7 +212,7 @@ WERROR NetShareAdd_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b; if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -280,7 +280,7 @@ WERROR NetShareDel_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b; if (!r->in.net_name) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } 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; if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -436,7 +436,7 @@ WERROR NetShareGetInfo_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b; if (!r->in.net_name || !r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -509,7 +509,7 @@ WERROR NetShareSetInfo_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b; if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c index fe190a25558..71980344442 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -385,7 +385,7 @@ WERROR NetUserAdd_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(user_handle); if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -466,7 +466,7 @@ WERROR NetUserAdd_r(struct libnetapi_ctx *ctx, } if (!(user_info->info16.acct_flags & ACB_NORMAL)) { - werr = WERR_INVALID_PARAM; + werr = WERR_INVALID_PARAMETER; goto done; } @@ -1297,7 +1297,7 @@ WERROR NetUserEnum_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(builtin_handle); if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } *r->out.buffer = NULL; @@ -1741,7 +1741,7 @@ WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(user_handle); if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -1879,7 +1879,7 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(user_handle); if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -2371,7 +2371,7 @@ WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(domain_handle); if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -2843,7 +2843,7 @@ WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(domain_handle); if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -2996,7 +2996,7 @@ WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(domain_handle); if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } *r->out.buffer = NULL; @@ -3191,7 +3191,7 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(group_handle); if (!r->in.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { @@ -3528,7 +3528,7 @@ WERROR NetUserGetLocalGroups_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(domain_handle); if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } *r->out.buffer = NULL; diff --git a/source3/lib/netapi/wkstainfo.c b/source3/lib/netapi/wkstainfo.c index b0939581924..9f523bc7df4 100644 --- a/source3/lib/netapi/wkstainfo.c +++ b/source3/lib/netapi/wkstainfo.c @@ -109,7 +109,7 @@ WERROR NetWkstaGetInfo_r(struct libnetapi_ctx *ctx, struct dcerpc_binding_handle *b; if (!r->out.buffer) { - return WERR_INVALID_PARAM; + return WERR_INVALID_PARAMETER; } switch (r->in.level) { -- cgit v1.2.1