diff options
author | Günther Deschner <gd@samba.org> | 2005-06-15 13:01:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:15 -0500 |
commit | 95ce7e65eb325d64f821e87f479b4898e577bc75 (patch) | |
tree | 34a9f922940232bf5d81ceed3ef3fb059da6774b /source3/utils | |
parent | 3f657f41cc7a71b3d5b769b31be030ebf543a645 (diff) | |
download | samba-95ce7e65eb325d64f821e87f479b4898e577bc75.tar.gz samba-95ce7e65eb325d64f821e87f479b4898e577bc75.tar.bz2 samba-95ce7e65eb325d64f821e87f479b4898e577bc75.zip |
r7607: Some minor fixes (typos, const)
Guenther
(This used to be commit 11504681861c9c8b509589d6d22551202d98e390)
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. |