summaryrefslogtreecommitdiff
path: root/source3/lib/xfile.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-31 04:30:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:26 -0500
commit1cf1e648feed823244731eef5f56bd34e15cb045 (patch)
tree63f7d989ccf7c05004f3fe7793f3c77d2053c20b /source3/lib/xfile.c
parent02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f (diff)
downloadsamba-1cf1e648feed823244731eef5f56bd34e15cb045.tar.gz
samba-1cf1e648feed823244731eef5f56bd34e15cb045.tar.bz2
samba-1cf1e648feed823244731eef5f56bd34e15cb045.zip
r17334: Some C++ warnings
(This used to be commit 8ae7ed1f3cecbb5285313d17b5f9511e2e622f0b)
Diffstat (limited to 'source3/lib/xfile.c')
-rw-r--r--source3/lib/xfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/xfile.c b/source3/lib/xfile.c
index ef33c7894f..8a6776b5f9 100644
--- a/source3/lib/xfile.c
+++ b/source3/lib/xfile.c
@@ -80,7 +80,7 @@ static int x_allocate_buffer(XFILE *f)
{
if (f->buf) return 1;
if (f->bufsize == 0) return 0;
- f->buf = SMB_MALLOC(f->bufsize);
+ f->buf = (char *)SMB_MALLOC(f->bufsize);
if (!f->buf) return 0;
f->next = f->buf;
return 1;