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

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/netapi/cm.c
source3/lib/netapi/file.c
source3/lib/netapi/group.c
source3/lib/netapi/joindomain.c
source3/lib/netapi/localgroup.c
source3/lib/netapi/netapi.c
source3/lib/netapi/netlogon.c
source3/lib/netapi/serverinfo.c
source3/lib/netapi/share.c
source3/lib/netapi/user.c
source3/lib/netapi/wkstainfo.c

index a98cf7f078d76a630ae1a8754c2f555af511a6f5..bc50f94bab8ec03718209e155f38e18c637746db 100644 (file)
@@ -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);
index 99541b9757806a0e8a2e34c525fd331d652ca0c0..eeecab4ffc678f52c6188f510f045ff857f09806 100644 (file)
@@ -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) {
index 06efd7043f9960c913d0759a6f13c7c0aaf3133b..d1d861b552d8f960c635df2481c9c9abb0e8be01 100644 (file)
@@ -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) {
index 86b8b1ade53ed1f965d6a23bca8f8f75de3efc9a..8d779cb842f4bf21df0a9aeeb7718a828709c70d 100644 (file)
@@ -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);
index 241970da3c80b233bc43b7fbc983f9c91b34be5b..e8a0e2b9529ddd605c8d9e4569a80fcafb7f5ca7 100644 (file)
@@ -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);
index b4596f864fbea30886328c79c034ce4b9ba9bfd3..3ed7295282116481c166c0232ade8b5dd63e25d3 100644 (file)
@@ -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);
index 136cb4888448203b5833850e485a122002aecd87..04f9dc1967babec2091b6c637cb6eaf963d8c724 100644 (file)
@@ -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) {
index 35238e5b8c84477a9c42c6b46a4efc420a9ae7e0..1053f807e15d51d934d7d372a02afb0b95d162d5 100644 (file)
@@ -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()) {
index 1694a279c0f2a59bff0760c37e73584a28a543af..3acd780b004e070f11b9d0171a5540d35605e7e5 100644 (file)
@@ -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) {
index fe190a255581f3035c6497092ae757478774cf66..71980344442878a8874c684b1ad5c1d0335b2102 100644 (file)
@@ -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;
index b0939581924ea390f5ca674fd7e7fe08dfaa49eb..9f523bc7df4d3cb1ccdfc31109651037b8cd17bb 100644 (file)
@@ -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) {