summaryrefslogtreecommitdiff
path: root/source3/printing/notify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-17 14:28:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:41 -0500
commit08e308fe2cdf6b9c7d7c96f3e29ff7209a4a63a9 (patch)
tree30bef9e6256decfa877d7c61646e72f078464cfb /source3/printing/notify.c
parentac2fa9f41445d81bb45e385520d0fbba608956b4 (diff)
downloadsamba-08e308fe2cdf6b9c7d7c96f3e29ff7209a4a63a9.tar.gz
samba-08e308fe2cdf6b9c7d7c96f3e29ff7209a4a63a9.tar.bz2
samba-08e308fe2cdf6b9c7d7c96f3e29ff7209a4a63a9.zip
r17590: Some C++ Warnings
(This used to be commit b7ec240880af0072ef20b2c0d688ef3cc386d484)
Diffstat (limited to 'source3/printing/notify.c')
-rw-r--r--source3/printing/notify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index f27eb2011f..916ff213cc 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -99,7 +99,7 @@ again:
msg->len, msg->notify.data);
if (buflen != len) {
- buf = TALLOC_REALLOC(send_ctx, buf, len);
+ buf = (char *)TALLOC_REALLOC(send_ctx, buf, len);
if (!buf)
return False;
buflen = len;
@@ -140,7 +140,7 @@ static void print_notify_send_messages_to_printer(const char *printer, unsigned
}
offset += 4; /* For count. */
- buf = TALLOC(send_ctx, offset);
+ buf = (char *)TALLOC(send_ctx, offset);
if (!buf) {
DEBUG(0,("print_notify_send_messages: Out of memory\n"));
talloc_free_children(send_ctx);
@@ -220,7 +220,7 @@ static BOOL copy_notify2_msg( SPOOLSS_NOTIFY_MSG *to, SPOOLSS_NOTIFY_MSG *from )
memcpy( to, from, sizeof(SPOOLSS_NOTIFY_MSG) );
if ( from->len ) {
- to->notify.data = TALLOC_MEMDUP(send_ctx, from->notify.data, from->len );
+ to->notify.data = (char *)TALLOC_MEMDUP(send_ctx, from->notify.data, from->len );
if ( !to->notify.data ) {
DEBUG(0,("copy_notify2_msg: talloc_memdup() of size [%d] failed!\n", from->len ));
return False;