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/libsmb/clilist.c | |
parent | e23781b3b304d1e69ad80af5ae9c0ed8d02cf996 (diff) | |
download | samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.tar.gz samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.tar.bz2 samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.zip |
r17333: Some C++ warnings
(This used to be commit be9aaffdaccae06c8c035eaf31862e34b7cfbe38)
Diffstat (limited to 'source3/libsmb/clilist.c')
-rw-r--r-- | source3/libsmb/clilist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index e18bb185d5..a006c47ae0 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -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; |