summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-04 19:47:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:43:24 -0500
commitf8a17bd8bdbb52b200671e7ed52ffd982419f3f6 (patch)
treed1cfcad8ec932b033913ea210c6852fa7ad7e38a /source3/client
parentc49961b785b42aa6ce8ca852f268356b64d50dcc (diff)
downloadsamba-f8a17bd8bdbb52b200671e7ed52ffd982419f3f6.tar.gz
samba-f8a17bd8bdbb52b200671e7ed52ffd982419f3f6.tar.bz2
samba-f8a17bd8bdbb52b200671e7ed52ffd982419f3f6.zip
r18047: More C++ stuff
(This used to be commit 86f4ca84f2df2aa8977eb24828e3aa840dda7201)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/clitar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index d8cf43e652..f228db1199 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -1075,7 +1075,7 @@ static char *get_longfilename(file_info2 finfo)
/* finfo.size here is the length of the filename as written by the "/./@LongLink" name
* header call. */
int namesize = finfo.size + strlen(cur_dir) + 2;
- char *longname = SMB_MALLOC(namesize);
+ char *longname = (char *)SMB_MALLOC(namesize);
int offset = 0, left = finfo.size;
BOOL first = True;
@@ -1523,7 +1523,7 @@ static int read_inclusion_file(char *filename)
while ((! error) && (x_fgets(buf, sizeof(buf)-1, inclusion))) {
if (inclusion_buffer == NULL) {
inclusion_buffer_size = 1024;
- if ((inclusion_buffer = SMB_MALLOC(inclusion_buffer_size)) == NULL) {
+ if ((inclusion_buffer = (char *)SMB_MALLOC(inclusion_buffer_size)) == NULL) {
DEBUG(0,("failure allocating buffer to read inclusion file\n"));
error = 1;
break;
@@ -1536,7 +1536,7 @@ static int read_inclusion_file(char *filename)
if ((strlen(buf) + 1 + inclusion_buffer_sofar) >= inclusion_buffer_size) {
inclusion_buffer_size *= 2;
- inclusion_buffer = SMB_REALLOC(inclusion_buffer,inclusion_buffer_size);
+ inclusion_buffer = (char *)SMB_REALLOC(inclusion_buffer,inclusion_buffer_size);
if (!inclusion_buffer) {
DEBUG(0,("failure enlarging inclusion buffer to %d bytes\n",
inclusion_buffer_size));