Author: obnox Date: 2007-05-15 11:12:10 +0000 (Tue, 15 May 2007) New Revision: 22897
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22897 Log: Fix c++ warnings (add explicit casts). Modified: branches/SAMBA_3_0_26/source/utils/net_rpc_printer.c Changeset: Modified: branches/SAMBA_3_0_26/source/utils/net_rpc_printer.c =================================================================== --- branches/SAMBA_3_0_26/source/utils/net_rpc_printer.c 2007-05-15 11:00:20 UTC (rev 22896) +++ branches/SAMBA_3_0_26/source/utils/net_rpc_printer.c 2007-05-15 11:12:10 UTC (rev 22897) @@ -2166,7 +2166,7 @@ if (ctr_enum.printers_2[i].devmode != NULL) { /* copy devmode (info level 2) */ - ctr_dst.printers_2->devmode = + ctr_dst.printers_2->devmode = (struct devicemode *) TALLOC_MEMDUP(mem_ctx, ctr_enum.printers_2[i].devmode, sizeof(DEVICEMODE)); @@ -2328,7 +2328,7 @@ value.type = REG_SZ; value.size = data.uni_str_len * 2; if (value.size) { - value.data_p = TALLOC_MEMDUP(mem_ctx, data.buffer, value.size); + value.data_p = (uint8 *)TALLOC_MEMDUP(mem_ctx, data.buffer, value.size); } else { value.data_p = NULL; }