diff options
author | Michael Adam <obnox@samba.org> | 2008-04-13 14:55:49 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-13 15:33:48 +0200 |
commit | 80b6d7b1d66509162da04e143d42fdd35a4c61e5 (patch) | |
tree | 90aba878ac32faaf482b98802dac1a0b89393b03 /source3/registry/reg_cachehook.c | |
parent | 5166d562eaf8896493f161c43408fd54a88f7c61 (diff) | |
download | samba-80b6d7b1d66509162da04e143d42fdd35a4c61e5.tar.gz samba-80b6d7b1d66509162da04e143d42fdd35a4c61e5.tar.bz2 samba-80b6d7b1d66509162da04e143d42fdd35a4c61e5.zip |
registry: change reghook_cache_add() to return WERROR instead of bool
Michael
(This used to be commit e65a999989c97c4c7b0af5093e0e89583691e9a8)
Diffstat (limited to 'source3/registry/reg_cachehook.c')
-rw-r--r-- | source3/registry/reg_cachehook.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c index 66b9ae6c4e..6697a69356 100644 --- a/source3/registry/reg_cachehook.c +++ b/source3/registry/reg_cachehook.c @@ -79,13 +79,13 @@ WERROR reghook_cache_init(void) is not in the exact format that a SORTED_TREE expects. *********************************************************************/ -bool reghook_cache_add(const char *keyname, REGISTRY_OPS *ops) +WERROR reghook_cache_add(const char *keyname, REGISTRY_OPS *ops) { WERROR werr; char *key = NULL; if ((keyname == NULL) || (ops == NULL)) { - return false; + return WERR_INVALID_PARAM; } werr = keyname_to_path(talloc_tos(), keyname, &key); @@ -100,7 +100,7 @@ bool reghook_cache_add(const char *keyname, REGISTRY_OPS *ops) done: TALLOC_FREE(key); - return W_ERROR_IS_OK(werr); + return werr; } /********************************************************************** |