summaryrefslogtreecommitdiff
path: root/source3/printing/nt_printing.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-01-26 22:27:12 +0000
committerGerald Carter <jerry@samba.org>2002-01-26 22:27:12 +0000
commit485b4ff5ecf40620a0a6fedc0929dacdb28876a2 (patch)
tree6df531e3ad6e58fd797fdfc3be14650a8feffeb8 /source3/printing/nt_printing.c
parent59b17ff5970fd932a45ae45b4f0d4f1b2da12704 (diff)
downloadsamba-485b4ff5ecf40620a0a6fedc0929dacdb28876a2.tar.gz
samba-485b4ff5ecf40620a0a6fedc0929dacdb28876a2.tar.bz2
samba-485b4ff5ecf40620a0a6fedc0929dacdb28876a2.zip
merge from APPLIANCE_HEAD
(This used to be commit e3b87ffc8c26f9fd4c3e8181897b8812b7dc4ab6)
Diffstat (limited to 'source3/printing/nt_printing.c')
-rw-r--r--source3/printing/nt_printing.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index f36b6bdafc..86802fc81b 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2720,40 +2720,6 @@ WERROR mod_a_printer(NT_PRINTER_INFO_LEVEL printer, uint32 level)
}
/****************************************************************************
- Add a printer. This is called from ADDPRINTER(EX) and also SETPRINTER.
- We split this out from mod_a_printer as it updates the id's and timestamps.
-****************************************************************************/
-
-WERROR add_a_printer(NT_PRINTER_INFO_LEVEL printer, uint32 level)
-{
- WERROR result;
-
- dump_a_printer(printer, level);
-
- switch (level)
- {
- case 2:
- {
- /*
- * Update the changestamp. See comments in mod_a_printer()
- * --jerry
- */
-
- printer.info_2->changeid = rev_changeid();
- printer.info_2->c_setprinter++;
-
- result=update_a_printer_2(printer.info_2);
- break;
- }
- default:
- result=WERR_UNKNOWN_LEVEL;
- break;
- }
-
- return result;
-}
-
-/****************************************************************************
Initialize printer devmode & data with previously saved driver init values.
****************************************************************************/
static uint32 set_driver_init_2(NT_PRINTER_INFO_LEVEL_2 *info_ptr)
@@ -3923,7 +3889,7 @@ WERROR printer_write_default_dev(int snum, const PRINTER_DEFAULT *printer_defaul
* Finally write back to the tdb.
*/
- result = add_a_printer(*printer, 2);
+ result = mod_a_printer(*printer, 2);
done: