summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-25 23:23:06 +0100
committerKarolin Seeger <kseeger@samba.org>2009-04-15 09:07:40 +0200
commit4cc821b9bd845cfcccc680074293640c41ad629f (patch)
tree7b50658eea330b618a7533ea727b0a5f7d2b5131 /source3/utils
parent2d6993948002a8be523767e784c99ca839a60826 (diff)
downloadsamba-4cc821b9bd845cfcccc680074293640c41ad629f.tar.gz
s3:rpc_parse: remove unused init_unistr().
Guenther (cherry picked from commit fe340eb92fd2e5dfef977dc391d2a43ce970e0ea) (cherry picked from commit 0e845cd6009c8a01eb3d53f558e9872ec4a3ab9f)
Diffstat (limited to 'source3/utils')
-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))