summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-10 00:44:25 +0200
committerKarolin Seeger <kseeger@samba.org>2008-04-11 08:57:32 +0200
commitc815081b98062434b2a6d66b572c1faf5ca13150 (patch)
treecf913756c49e578b4b992071974cf2a6dafeb3d8 /testsuite
parent6139a9e3eed92bcf2ea094cad69efbfdbcca4f8f (diff)
downloadsamba-c815081b98062434b2a6d66b572c1faf5ca13150.tar.gz
samba-c815081b98062434b2a6d66b572c1faf5ca13150.tar.xz
samba-c815081b98062434b2a6d66b572c1faf5ca13150.zip
vlp: fix an implicit cast compile warning.
Michael (cherry picked from commit bf46f614c497110dcc3fc79f610fcc7a8784dbb2)
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/printing/vlp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/printing/vlp.c b/testsuite/printing/vlp.c
index 5c8dcd92eb2..15459889e9f 100644
--- a/testsuite/printing/vlp.c
+++ b/testsuite/printing/vlp.c
@@ -256,7 +256,8 @@ static int print_command(int argc, char **argv)
/* Add job to end of queue */
- queue.dptr = SMB_MALLOC(value.dsize + sizeof(struct vlp_job));
+ queue.dptr = (unsigned char *)SMB_MALLOC(value.dsize +
+ sizeof(struct vlp_job));
if (!queue.dptr) return 1;
memcpy(queue.dptr, value.dptr, value.dsize);