Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
*pkey = key;
return WERR_OK;
}
-
-int registry_value_cmp(const struct registry_value* v1, const struct registry_value* v2)
-{
- if (v1->type == v2->type) {
- return data_blob_cmp(&v1->data, &v2->data);
- }
- return v1->type - v2->type;
-}
uint32_t desired_access, const struct security_token *token,
struct registry_key **pkey);
-int registry_value_cmp(const struct registry_value *v1, const struct registry_value *v2);
-
#endif /* _REG_API_UTIL_H */
return werr;
}
+static int registry_value_cmp(
+ const struct registry_value* v1, const struct registry_value* v2)
+{
+ if (v1->type == v2->type) {
+ return data_blob_cmp(&v1->data, &v2->data);
+ }
+ return v1->type - v2->type;
+}
+
static WERROR precheck_create_val(struct precheck_ctx *ctx,
struct registry_key *parent,
const char *name,