werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source4/dsdb/
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:23 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/cracknames.c
source4/dsdb/samdb/ldb_modules/password_hash.c
source4/dsdb/schema/schema_init.c
source4/dsdb/schema/schema_set.c

index 0e87fe0b29c3356063ebee8287c8c35c954957b3..ad4ef5c13a5a4656f5bc099d132116c0489225d4 100644 (file)
@@ -471,7 +471,7 @@ WERROR DsCrackNameOneName(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
        info1->result_name = NULL;
 
        if (!name) {
-               return WERR_INVALID_PARAM;
+               return WERR_INVALID_PARAMETER;
        }
 
        /* TODO: - fill the correct names in all cases!
index ec3d27eac110ab2f33c6f9adcb0b311ca8908e52..9b772a8befed5ce2aa0da222ca86b07c464808ac 100644 (file)
@@ -2029,7 +2029,7 @@ static int setup_last_set_field(struct setup_password_fields_io *io)
        default:
                return dsdb_module_werror(io->ac->module,
                                          LDB_ERR_OTHER,
-                                         WERR_INVALID_PARAM,
+                                         WERR_INVALID_PARAMETER,
                                          "setup_last_set_field: "
                                          "pwdLastSet must be 0 or -1 only!");
        }
index ce78800c58b6bef615b001060a798565dd0396ad..199ee28053c6dc7d03ab021e0592f5050a185d93 100644 (file)
@@ -524,7 +524,7 @@ static int dsdb_schema_setup_ldb_schema_attribute(struct ldb_context *ldb,
        if (get_string_val == NULL) { \
                if (strict) {                                     \
                        d_printf("%s: %s == NULL in %s\n", __location__, attr, ldb_dn_get_linearized(msg->dn)); \
-                       return WERR_INVALID_PARAM;                      \
+                       return WERR_INVALID_PARAMETER;                  \
                } else {                                                \
                        (p)->elem = NULL;                               \
                }                                                       \
@@ -569,7 +569,7 @@ static int dsdb_schema_setup_ldb_schema_attribute(struct ldb_context *ldb,
        if (str == NULL) { \
                if (strict) { \
                        d_printf("%s: %s == NULL\n", __location__, attr); \
-                       return WERR_INVALID_PARAM; \
+                       return WERR_INVALID_PARAMETER; \
                } else { \
                        (p)->elem = false; \
                } \
@@ -579,7 +579,7 @@ static int dsdb_schema_setup_ldb_schema_attribute(struct ldb_context *ldb,
                (p)->elem = false; \
        } else { \
                d_printf("%s: %s == %s\n", __location__, attr, str); \
-               return WERR_INVALID_PARAM; \
+               return WERR_INVALID_PARAMETER; \
        } \
 } while (0)
 
@@ -594,7 +594,7 @@ static int dsdb_schema_setup_ldb_schema_attribute(struct ldb_context *ldb,
        } else if (_v > UINT32_MAX) { \
                d_printf("%s: %s == 0x%llX\n", __location__, \
                         attr, (unsigned long long)_v); \
-               return WERR_INVALID_PARAM; \
+               return WERR_INVALID_PARAMETER; \
        } else { \
                (p)->elem = talloc(mem_ctx, uint32_t); \
                if (!(p)->elem) { \
@@ -630,7 +630,7 @@ WERROR dsdb_attribute_from_ldb(const struct dsdb_schema *schema,
        WERROR status;
        if (attr == NULL) {
                DEBUG(0, ("%s: attr is null, it's expected not to be so\n", __location__));
-               return WERR_INVALID_PARAM;
+               return WERR_INVALID_PARAMETER;
        }
 
        GET_STRING_LDB(msg, "cn", attr, attr, cn, false);
index 2400c8c8f38a6b7cf511dbdee63bc673186c2707..6f03046ff21c0f62e5b07484159b7b0aa17f2bc5 100644 (file)
@@ -832,7 +832,7 @@ WERROR dsdb_set_schema_from_ldif(struct ldb_context *ldb,
         */
        ldif = ldb_ldif_read_string(ldb, &pf);
        if (!ldif) {
-               status = WERR_INVALID_PARAM;
+               status = WERR_INVALID_PARAMETER;
                goto failed;
        }
        talloc_steal(mem_ctx, ldif);
@@ -845,7 +845,7 @@ WERROR dsdb_set_schema_from_ldif(struct ldb_context *ldb,
 
        prefix_val = ldb_msg_find_ldb_val(msg, "prefixMap");
        if (!prefix_val) {
-               status = WERR_INVALID_PARAM;
+               status = WERR_INVALID_PARAMETER;
                goto failed;
        }