diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-07-31 03:53:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:26 -0500 |
commit | 02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f (patch) | |
tree | a3fb9be7bfad975ba13651718a011bbad36597ca /source3/registry/reg_perfcount.c | |
parent | e23781b3b304d1e69ad80af5ae9c0ed8d02cf996 (diff) | |
download | samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.tar.gz samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.tar.xz samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.zip |
r17333: Some C++ warnings
(This used to be commit be9aaffdaccae06c8c035eaf31862e34b7cfbe38)
Diffstat (limited to 'source3/registry/reg_perfcount.c')
-rw-r--r-- | source3/registry/reg_perfcount.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/registry/reg_perfcount.c b/source3/registry/reg_perfcount.c index a0edf4513f..febae62ad0 100644 --- a/source3/registry/reg_perfcount.c +++ b/source3/registry/reg_perfcount.c @@ -177,7 +177,7 @@ static uint32 _reg_perfcount_multi_sz_from_tdb(TDB_CONTEXT *tdb, } /* First encode the name_index */ working_size = (kbuf.dsize + 1)*sizeof(uint16); - buf1 = SMB_REALLOC(buf1, buffer_size + working_size); + buf1 = (char *)SMB_REALLOC(buf1, buffer_size + working_size); if(!buf1) { buffer_size = 0; return buffer_size; @@ -187,7 +187,7 @@ static uint32 _reg_perfcount_multi_sz_from_tdb(TDB_CONTEXT *tdb, buffer_size += working_size; /* Now encode the actual name */ working_size = (dbuf.dsize + 1)*sizeof(uint16); - buf1 = SMB_REALLOC(buf1, buffer_size + working_size); + buf1 = (char *)SMB_REALLOC(buf1, buffer_size + working_size); if(!buf1) { buffer_size = 0; return buffer_size; @@ -234,7 +234,7 @@ uint32 reg_perfcount_get_counter_help(uint32 base_index, char **retbuf) /* Now terminate the MULTI_SZ with a double unicode NULL */ buf1 = *retbuf; - buf1 = SMB_REALLOC(buf1, buffer_size + 2); + buf1 = (char *)SMB_REALLOC(buf1, buffer_size + 2); if(!buf1) { buffer_size = 0; } else { @@ -279,7 +279,7 @@ uint32 reg_perfcount_get_counter_names(uint32 base_index, char **retbuf) /* Now terminate the MULTI_SZ with a double unicode NULL */ buf1 = *retbuf; - buf1 = SMB_REALLOC(buf1, buffer_size + 2); + buf1 = (char *)SMB_REALLOC(buf1, buffer_size + 2); if(!buf1) { buffer_size = 0; } else { |