summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_rpc_printer.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-25 23:23:06 +0100
committerGünther Deschner <gd@samba.org>2009-03-26 10:42:13 +0100
commitfe340eb92fd2e5dfef977dc391d2a43ce970e0ea (patch)
treef56dbb238e960ab14c264c2a76941b2cec3299b3 /source3/utils/net_rpc_printer.c
parent24d5229a81e1067662930d42f8c59b3a0adac1e0 (diff)
downloadsamba-fe340eb92fd2e5dfef977dc391d2a43ce970e0ea.tar.gz
samba-fe340eb92fd2e5dfef977dc391d2a43ce970e0ea.tar.xz
samba-fe340eb92fd2e5dfef977dc391d2a43ce970e0ea.zip
s3:rpc_parse: remove unused init_unistr().
Guenther
Diffstat (limited to 'source3/utils/net_rpc_printer.c')
-rw-r--r--source3/utils/net_rpc_printer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 1d0e9a38bee..9721628f022 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -2260,14 +2260,13 @@ NTSTATUS rpc_printer_migrate_settings_internals(struct net_context *c,
info_dst.info2.secdesc = NULL;
#if 0
- if (asprintf(&devicename, "\\\\%s\\%s", longname,
- printername) < 0) {
+ info_dst.info2.devmode.devicename =
+ talloc_asprintf(mem_ctx, "\\\\%s\\%s",
+ longname, printername);
+ if (!info_dst.info2.devmode.devicename) {
nt_status = NT_STATUS_NO_MEMORY;
goto done;
}
-
- init_unistr(&ctr_dst.printers_2->devmode->devicename,
- devicename);
#endif
if (!net_spoolss_setprinter(pipe_hnd_dst, mem_ctx, &hnd_dst,
level, &info_dst))