1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

r17333: Some C++ warnings

This commit is contained in:
Volker Lendecke
2006-07-31 03:53:39 +00:00
committed by Gerald (Jerry) Carter
parent 1e4ee728df
commit be9aaffdac
14 changed files with 47 additions and 36 deletions

View File

@@ -335,7 +335,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
/* grab the data for later use */
/* and add them to the dirlist pool */
dirlist = SMB_REALLOC(dirlist,dirlist_len + data_len);
dirlist = (char *)SMB_REALLOC(dirlist,dirlist_len + data_len);
if (!dirlist) {
DEBUG(0,("cli_list_new: Failed to expand dirlist\n"));
@@ -461,7 +461,8 @@ int cli_list_old(struct cli_state *cli,const char *Mask,uint16 attribute,
first = False;
dirlist = SMB_REALLOC(dirlist,(num_received + received)*DIR_STRUCT_SIZE);
dirlist = (char *)SMB_REALLOC(
dirlist,(num_received + received)*DIR_STRUCT_SIZE);
if (!dirlist) {
DEBUG(0,("cli_list_old: failed to expand dirlist"));
return 0;