From fdf669d37744487a7671b1d90541dbc21a41aeb6 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 26 Apr 2010 18:33:20 -0400 Subject: s3-spoolss: Get rid of get_server_name. This function was useless the structure is public and used everywhere. Signed-off-by: Jim McDonough --- source3/include/proto.h | 1 - source3/printing/nt_printing.c | 9 --------- source3/rpc_server/srv_spoolss_nt.c | 5 +---- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index 738559b748..95d9411927 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4795,7 +4795,6 @@ bool print_access_check(struct auth_serversupplied_info *server_info, int snum, int access_type); bool print_time_access_check(struct auth_serversupplied_info *server_info, const char *servicename); -char* get_server_name( Printer_entry *printer ); /* The following definitions come from printing/pcap.c */ diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index e4694ebd96..a3b5c7f1dc 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -5238,13 +5238,4 @@ bool print_time_access_check(struct auth_serversupplied_info *server_info, return ok; } -/**************************************************************************** - Fill in the servername sent in the _spoolss_open_printer_ex() call -****************************************************************************/ - -char* get_server_name( Printer_entry *printer ) -{ - return printer->servername; -} - diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 6c1eab4168..07e541d37f 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -4937,7 +4937,6 @@ WERROR _spoolss_GetPrinterDriver2(pipes_struct *p, Printer_entry *printer; WERROR result; - const char *servername; int snum; /* that's an [in out] buffer */ @@ -4957,15 +4956,13 @@ WERROR _spoolss_GetPrinterDriver2(pipes_struct *p, *r->out.server_major_version = 0; *r->out.server_minor_version = 0; - servername = get_server_name(printer); - if (!get_printer_snum(p, r->in.handle, &snum, NULL)) { return WERR_BADFID; } result = construct_printer_driver_info_level(p->mem_ctx, p->server_info, r->in.level, r->out.info, - snum, servername, + snum, printer->servername, r->in.architecture, r->in.client_major_version); if (!W_ERROR_IS_OK(result)) { -- cgit