werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source3/smbd/lanman.c
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:26 +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/smbd/lanman.c

index 4c5c92d0750869b853bf8fc11e7ea5233fa3cc91..bf8eb7d3a830e5401596922e7eb85cc6be7870e5 100644 (file)
@@ -827,7 +827,7 @@ static bool api_DosPrintQGetInfo(struct smbd_server_connection *sconn,
        ZERO_STRUCT(handle);
 
        if (QueueName == NULL || (strlen(QueueName) < 1)) {
-               desc.errcode = W_ERROR_V(WERR_INVALID_PARAM);
+               desc.errcode = W_ERROR_V(WERR_INVALID_PARAMETER);
                goto out;
        }
 
@@ -3031,13 +3031,13 @@ static bool api_SamOEMChangePassword(struct smbd_server_connection *sconn,
        DEBUG(3,("api_SamOEMChangePassword: Change password for <%s>\n",user));
 
        if (tdscnt != 532) {
-               errcode = W_ERROR_V(WERR_INVALID_PARAM);
+               errcode = W_ERROR_V(WERR_INVALID_PARAMETER);
                goto out;
        }
 
        bufsize = get_safe_SVAL(param,tpscnt,p,0,-1);
        if (bufsize != 532) {
-               errcode = W_ERROR_V(WERR_INVALID_PARAM);
+               errcode = W_ERROR_V(WERR_INVALID_PARAMETER);
                goto out;
        }
 
@@ -3657,7 +3657,7 @@ static bool api_RNetServerGetInfo(struct smbd_server_connection *sconn,
        }
 
        if (info.info101 == NULL) {
-               errcode = W_ERROR_V(WERR_INVALID_PARAM);
+               errcode = W_ERROR_V(WERR_INVALID_PARAMETER);
                goto out;
        }
 
@@ -4148,11 +4148,11 @@ static bool api_RNetUserGetInfo(struct smbd_server_connection *sconn,
                goto out;
        }
        if (rids.count != types.count) {
-               errcode = W_ERROR_V(WERR_INVALID_PARAM);
+               errcode = W_ERROR_V(WERR_INVALID_PARAMETER);
                goto out;
        }
        if (types.ids[0] != SID_NAME_USER) {
-               errcode = W_ERROR_V(WERR_INVALID_PARAM);
+               errcode = W_ERROR_V(WERR_INVALID_PARAMETER);
                goto out;
        }