summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-10 00:44:25 +0200
committerMichael Adam <obnox@samba.org>2008-04-10 01:11:31 +0200
commit199eb31cc99904b5a45cb1042dc14283b24cdb61 (patch)
treef5e2ec49a3cd9780093db3f8032b5048b51c2be9
parent98f3462df22cb285f07e61bc5c5ff2954375abdd (diff)
downloadsamba-199eb31cc99904b5a45cb1042dc14283b24cdb61.tar.gz
samba-199eb31cc99904b5a45cb1042dc14283b24cdb61.tar.bz2
samba-199eb31cc99904b5a45cb1042dc14283b24cdb61.zip
vlp: fix an implicit cast compile warning.
Michael (This used to be commit bf46f614c497110dcc3fc79f610fcc7a8784dbb2)
-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 5c8dcd92eb..15459889e9 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);