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

index 3081f02e2b94d575aa6dc0f4ab75e2569d8b5f25..ac04460ae159f11e3eefb10a214c921a61c699a8 100644 (file)
@@ -43,11 +43,11 @@ static WERROR _split_hive_key(TALLOC_CTX *mem_ctx,
        const char *tmp_subkeyname;
 
        if ((path == NULL) || (hivename == NULL) || (subkeyname == NULL)) {
-               return WERR_INVALID_PARAM;
+               return WERR_INVALID_PARAMETER;
        }
 
        if (strlen(path) == 0) {
-               return WERR_INVALID_PARAM;
+               return WERR_INVALID_PARAMETER;
        }
 
        if (strchr(path, '\\') == NULL) {
index 10e7e47932b34454f1f68c112f496cfae2cba9db..5ec97e6a94cace344486f07a59b990d8be4bdee2 100644 (file)
@@ -1042,7 +1042,7 @@ WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
                }
 
                if (devmode->size != (ndr_size_spoolss_DeviceMode(devmode, 0) - devmode->__driverextra_length)) {
-                       result = WERR_INVALID_PARAM;
+                       result = WERR_INVALID_PARAMETER;
                        goto done;
                }
 
@@ -2952,7 +2952,7 @@ WERROR winreg_printer_setform1(TALLOC_CTX *mem_ctx,
 
        for (i = 0; i < num_builtin; i++) {
                if (strequal(builtin_forms1[i].form_name, form->form_name)) {
-                       result = WERR_INVALID_PARAM;
+                       result = WERR_INVALID_PARAMETER;
                        goto done;
                }
        }
index 4fcb64e55fd7cdff181dd58b7fdaa869eea81987..6542fc94f1c3e0ebac8f8098e10f570b4575ee72 100644 (file)
@@ -455,7 +455,7 @@ WERROR winreg_printer_enumforms1(TALLOC_CTX *mem_ctx,
  * @param[in]  form_name The name of the form to delete.
  *
  * @return              WERR_OK on success.
- *                      WERR_INVALID_PARAM if the form is a builtin form.
+ *                      WERR_INVALID_PARAMETER if the form is a builtin form.
  *                      WERR_INVALID_FORM_NAME if the form or key doesn't exist.
  *                      A corresponding DOS error is something went wrong.
  */
@@ -478,7 +478,7 @@ WERROR winreg_printer_deleteform1(TALLOC_CTX *mem_ctx,
  * @param[in]  form     The FormInfo structure to save.
  *
  * @return              WERR_OK on success.
- *                      WERR_INVALID_PARAM if the form is a builtin form.
+ *                      WERR_INVALID_PARAMETER if the form is a builtin form.
  *                      A corresponding DOS error is something went wrong.
  */
 WERROR winreg_printer_setform1(TALLOC_CTX *mem_ctx,