s3:registry: compile reg_create_path() & reg_delete_path()
authorGregor Beck <gbeck@sernet.de>
Mon, 30 Apr 2012 08:26:32 +0000 (10:26 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 26 Jun 2012 17:57:18 +0000 (19:57 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
source3/registry/reg_api_util.c
source3/registry/reg_api_util.h

index 045ad21517a5d5ca0009b8581ed44ab6014bb0c5..a6a59bb2e33d2b06ff97f029f97f71467d0833ee 100644 (file)
@@ -82,9 +82,6 @@ WERROR reg_open_path(TALLOC_CTX *mem_ctx, const char *orig_path,
        return WERR_OK;
 }
 
-#if 0
-/* these two functions are unused. */
-
 /**
  * Utility function to create a registry key without opening the hive
  * before. Assumes the hive already exists.
@@ -179,4 +176,3 @@ WERROR reg_delete_path(const struct security_token *token,
        TALLOC_FREE(hive);
        return err;
 }
-#endif /* #if 0 */
index d2d7894d78b2c74df929e4e19fe9e3565a95e86d..a70fa725618b25ab85aef8a0d43bb8a88a374890 100644 (file)
@@ -32,8 +32,6 @@ WERROR reg_open_path(TALLOC_CTX *mem_ctx, const char *orig_path,
                     uint32 desired_access, const struct security_token *token,
                     struct registry_key **pkey);
 
-#if 0
-/* currently unused */
 WERROR reg_create_path(TALLOC_CTX *mem_ctx, const char *orig_path,
                       uint32 desired_access,
                       const struct security_token *token,
@@ -41,6 +39,5 @@ WERROR reg_create_path(TALLOC_CTX *mem_ctx, const char *orig_path,
                       struct registry_key **pkey);
 WERROR reg_delete_path(const struct security_token *token,
                       const char *orig_path);
-#endif
 
 #endif /* _REG_API_UTIL_H */