summaryrefslogtreecommitdiff
path: root/source3/registry/reg_cachehook.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-31 03:53:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:26 -0500
commit02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f (patch)
treea3fb9be7bfad975ba13651718a011bbad36597ca /source3/registry/reg_cachehook.c
parente23781b3b304d1e69ad80af5ae9c0ed8d02cf996 (diff)
downloadsamba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.tar.gz
samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.tar.bz2
samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.zip
r17333: Some C++ warnings
(This used to be commit be9aaffdaccae06c8c035eaf31862e34b7cfbe38)
Diffstat (limited to 'source3/registry/reg_cachehook.c')
-rw-r--r--source3/registry/reg_cachehook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c
index 32885be8e2..ae8420776a 100644
--- a/source3/registry/reg_cachehook.c
+++ b/source3/registry/reg_cachehook.c
@@ -79,7 +79,7 @@ REGISTRY_HOOK* reghook_cache_find( const char *keyname )
/* prepend the string with a '\' character */
len = strlen( keyname );
- if ( !(key = SMB_MALLOC( len + 2 )) ) {
+ if ( !(key = (char *)SMB_MALLOC( len + 2 )) ) {
DEBUG(0,("reghook_cache_find: malloc failed for string [%s] !?!?!\n",
keyname));
return NULL;
@@ -94,7 +94,7 @@ REGISTRY_HOOK* reghook_cache_find( const char *keyname )
DEBUG(10,("reghook_cache_find: Searching for keyname [%s]\n", key));
- hook = pathtree_find( cache_tree, key ) ;
+ hook = (REGISTRY_HOOK *)pathtree_find( cache_tree, key ) ;
SAFE_FREE( key );