|
|
Author: obnox
Date: 2007-05-16 11:57:37 +0000 (Wed, 16 May 2007)
New Revision: 22932
WebSVN:
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22932
Log:
Use the same symbol in sizeof and cast for talloc.
Modified:
branches/SAMBA_3_0/source/utils/net_rpc_printer.c
branches/SAMBA_3_0_26/source/utils/net_rpc_printer.c
Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc_printer.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc_printer.c 2007-05-16 11:15:16 UTC
(rev 22931)
+++ branches/SAMBA_3_0/source/utils/net_rpc_printer.c 2007-05-16 11:57:37 UTC
(rev 22932)
@@ -2170,7 +2170,7 @@
if (ctr_enum.printers_2[i].devmode != NULL) {
/* copy devmode (info level 2) */
- ctr_dst.printers_2->devmode = (struct devicemode *)
+ ctr_dst.printers_2->devmode = (DEVICEMODE *)
TALLOC_MEMDUP(mem_ctx,
ctr_enum.printers_2[i].devmode,
sizeof(DEVICEMODE));
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-16
11:15:16 UTC (rev 22931)
+++ branches/SAMBA_3_0_26/source/utils/net_rpc_printer.c 2007-05-16
11:57:37 UTC (rev 22932)
@@ -2166,7 +2166,7 @@
if (ctr_enum.printers_2[i].devmode != NULL) {
/* copy devmode (info level 2) */
- ctr_dst.printers_2->devmode = (struct devicemode *)
+ ctr_dst.printers_2->devmode = (DEVICEMODE *)
TALLOC_MEMDUP(mem_ctx,
ctr_enum.printers_2[i].devmode,
sizeof(DEVICEMODE));
|
|