summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-05-07 15:07:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:21:54 -0500
commita66a04e9f11f6c4462f2b56b447bae4eca7b177c (patch)
tree3e13993827ca64a6836ef241607464effa195a4d /source/nsswitch/winbindd_cache.c
parenta99ab3a2ed44522054175f03b60e63fa05a0378a (diff)
downloadsamba-a66a04e9f11f6c4462f2b56b447bae4eca7b177c.tar.gz
samba-a66a04e9f11f6c4462f2b56b447bae4eca7b177c.tar.xz
samba-a66a04e9f11f6c4462f2b56b447bae4eca7b177c.zip
r22747: Fix some C++ warnings
Diffstat (limited to 'source/nsswitch/winbindd_cache.c')
-rw-r--r--source/nsswitch/winbindd_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c
index ed0d4131f61..8464b41deb5 100644
--- a/source/nsswitch/winbindd_cache.c
+++ b/source/nsswitch/winbindd_cache.c
@@ -2318,7 +2318,7 @@ void cache_store_response(pid_t pid, struct winbindd_response *response)
fstr_sprintf(key_str, "DE/%d", pid);
if (tdb_store(wcache->tdb, string_tdb_data(key_str),
- make_tdb_data(response->extra_data.data,
+ make_tdb_data((uint8 *)response->extra_data.data,
response->length - sizeof(*response)),
TDB_REPLACE) == 0)
return;
@@ -3193,7 +3193,7 @@ static int cache_traverse_validate_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_D
char *keystr;
int ret;
- keystr = SMB_MALLOC(kbuf.dsize+1);
+ keystr = SMB_MALLOC_ARRAY(char, kbuf.dsize+1);
if (!keystr) {
return 1;
}