diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 5cc89b41dd..840688be9a 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -296,7 +296,7 @@ static NTSTATUS net_copy_fileattr(TALLOC_CTX *mem_ctx, struct cli_state *cli_share_src, struct cli_state *cli_share_dst, - char *src_name, char *dst_name, + const char *src_name, const char *dst_name, BOOL copy_acls, BOOL copy_attrs, BOOL copy_timestamps, BOOL is_file) { @@ -449,7 +449,7 @@ out: NTSTATUS net_copy_file(TALLOC_CTX *mem_ctx, struct cli_state *cli_share_src, struct cli_state *cli_share_dst, - char *src_name, char *dst_name, + const char *src_name, const char *dst_name, BOOL copy_acls, BOOL copy_attrs, BOOL copy_timestamps, BOOL is_file) { @@ -1138,7 +1138,6 @@ get_printer_info(struct cli_state *cli, TALLOC_CTX *mem_ctx, uint32 *num_printers, PRINTER_INFO_CTR *ctr) { - char *sharename; POLICY_HND hnd; /* no arguments given, enumerate all printers */ @@ -1154,9 +1153,7 @@ get_printer_info(struct cli_state *cli, TALLOC_CTX *mem_ctx, /* argument given, get a single printer by name */ - sharename = SMB_STRDUP(argv[0]); - - if (!net_spoolss_open_printer_ex(cli, mem_ctx, sharename, + if (!net_spoolss_open_printer_ex(cli, mem_ctx, argv[0], MAXIMUM_ALLOWED_ACCESS, cli->user_name, &hnd)) return False; @@ -1255,7 +1252,7 @@ NTSTATUS rpc_printer_driver_list_internals(const DOM_SID *domain_sid, const char for (i=0; archi_table[i].long_archi!=NULL; i++) { - int num_drivers; + uint32 num_drivers; /* enum remote drivers */ if (!net_spoolss_enumprinterdrivers(cli, mem_ctx, level, @@ -1396,7 +1393,7 @@ NTSTATUS rpc_printer_publish_update_internals(const DOM_SID *domain_sid, const c } /** - * List print-queues w.r.t. thei publishing + * List print-queues w.r.t. their publishing state * * All parameters are provided by the run_rpc_command function, except for * argc, argv which are passed through. |