summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-08-18 01:02:32 +0000
committerGerald Carter <jerry@samba.org>2002-08-18 01:02:32 +0000
commit409d7ff3f565b853ac70f92d75a911019c0f254e (patch)
treee35ff3e889c1dfe897c94361809bc3bb64259cfc
parent66992aff21605e372546808e00fa0b0659add868 (diff)
downloadsamba-409d7ff3f565b853ac70f92d75a911019c0f254e.tar.gz
samba-409d7ff3f565b853ac70f92d75a911019c0f254e.tar.bz2
samba-409d7ff3f565b853ac70f92d75a911019c0f254e.zip
fixed up a few comments
removed now unused getprinterdata)printer() function (This used to be commit 2d5e4cdc3a4128c6747350d8f66b783218045ce2)
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c66
1 files changed, 2 insertions, 64 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 02bd0ef45b..b9224dea27 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1713,7 +1713,7 @@ static WERROR get_printer_dataex( TALLOC_CTX *ctx, NT_PRINTER_INFO_LEVEL *printe
*type = regval_type( val );
- DEBUG(5,("getprinterdata_printer:allocating %d\n", in_size));
+ DEBUG(5,("get_printer_dataex: allocating %d\n", in_size));
size = regval_size( val );
@@ -1729,7 +1729,7 @@ static WERROR get_printer_dataex( TALLOC_CTX *ctx, NT_PRINTER_INFO_LEVEL *printe
*needed = size;
- DEBUG(5,("getprinterdata_printer:copy done\n"));
+ DEBUG(5,("get_printer_dataex: copy done\n"));
return WERR_OK;
}
@@ -1843,68 +1843,6 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *ctx, fstring value, uint
}
/********************************************************************
- GetPrinterData on a printer Handle.
-********************************************************************/
-
-static BOOL getprinterdata_printer(pipes_struct *p, TALLOC_CTX *ctx, POLICY_HND *handle,
- fstring value, uint32 *type,
- uint8 **data, uint32 *needed, uint32 in_size )
-{
- NT_PRINTER_INFO_LEVEL *printer = NULL;
- int snum=0;
- Printer_entry *Printer = find_printer_index_by_hnd(p, handle);
- REGISTRY_VALUE *val;
- int size = 0;
-
- DEBUG(5,("getprinterdata_printer\n"));
-
- if ( !Printer ) {
- DEBUG(2,("getprinterdata_printer: Invalid handle (%s:%u:%u).\n", OUR_HANDLE(handle)));
- return False;
- }
-
- if ( !get_printer_snum(p, handle, &snum) )
- return False;
-
- if ( !W_ERROR_IS_OK(get_a_printer(&printer, 2, lp_servicename(snum))) )
- return False;
-
- if ( !(val = get_printer_data( printer->info_2, SPOOL_PRINTERDATA_KEY, value)) )
- {
- free_a_printer(&printer, 2);
- return False;
- }
-
- *type = regval_type( val );
-
-
- DEBUG(5,("getprinterdata_printer:allocating %d\n", in_size));
-
- if (in_size)
- {
- if ( (*data = (uint8 *)talloc(ctx, in_size * sizeof(uint8))) == NULL )
- return False;
-
- memset( *data, 0, in_size *sizeof(uint8) );
-
- /* copy the min(in_size, len) */
-
- size = regval_size( val );
- memcpy( *data, regval_data_p(val), (size > in_size) ? in_size : size*sizeof(uint8) );
- }
- else
- *data = NULL;
-
- *needed = size;
-
- DEBUG(5,("getprinterdata_printer:copy done\n"));
-
-
- free_a_printer(&printer, 2);
- return True;
-}
-
-/********************************************************************
* spoolss_getprinterdata
********************************************************************/