From 2494868ffba14d425531df98651d777a13d3be28 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 3 Dec 2006 17:34:11 +0000 Subject: r20020: Arglll... eventlogadm links against reg_db but not the rest of the registry stuff. Revert the last change. This needs better fixing. Volker (This used to be commit ad1e00430bf5c4130023d30e9c8266ecdc640d2b) --- source3/registry/reg_frontend.c | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) (limited to 'source3/registry/reg_frontend.c') diff --git a/source3/registry/reg_frontend.c b/source3/registry/reg_frontend.c index 1f6b285653..3bb88eaf47 100644 --- a/source3/registry/reg_frontend.c +++ b/source3/registry/reg_frontend.c @@ -93,16 +93,15 @@ BOOL init_registry( void ) int i; - /* build the cache tree of registry hooks */ - - reghook_cache_init(); - if ( !regdb_init() ) { - DEBUG(0,("init_registry: failed to initialize the registry " - "tdb!\n")); + DEBUG(0,("init_registry: failed to initialize the registry tdb!\n")); return False; } + /* build the cache tree of registry hooks */ + + reghook_cache_init(); + for ( i=0; reg_hooks[i].keyname; i++ ) { if ( !reghook_cache_add(®_hooks[i]) ) return False; @@ -643,24 +642,3 @@ WERROR reg_delete_path(const struct nt_user_token *token, TALLOC_FREE(hive); return err; } - -WERROR reg_set_dword(struct registry_key *key, const char *valuename, - uint32 value) -{ - struct registry_value val; - ZERO_STRUCT(val); - val.type = REG_DWORD; - val.v.dword = value; - return reg_setvalue(key, valuename, &val); -} - -WERROR reg_set_sz(struct registry_key *key, const char *valuename, - const char *value) -{ - struct registry_value val; - ZERO_STRUCT(val); - val.type = REG_SZ; - val.v.sz.str = CONST_DISCARD(char *, value); - val.v.sz.len = strlen(value)+1; - return reg_setvalue(key, valuename, &val); -} -- cgit