diff options
author | Günther Deschner <gd@samba.org> | 2009-05-06 01:10:33 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-06 10:19:04 +0200 |
commit | 9966541f89b45834cdf63060202621f885bf9f5c (patch) | |
tree | 0f689b5ae92a753a6b18aba932a8fea2dfd164bf /source3/rpc_server | |
parent | 4cbd0c77e42627c76dda88af5326ef91415a652d (diff) | |
download | samba-9966541f89b45834cdf63060202621f885bf9f5c.tar.gz samba-9966541f89b45834cdf63060202621f885bf9f5c.tar.bz2 samba-9966541f89b45834cdf63060202621f885bf9f5c.zip |
s3-printing: simplify print_queue helper functions and return WERROR.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 57410d0539..28c59d1fee 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -5730,20 +5730,14 @@ static WERROR control_printer(struct policy_handle *handle, uint32_t command, switch (command) { case SPOOLSS_PRINTER_CONTROL_PAUSE: - if (print_queue_pause(p->server_info, snum, &errcode)) { - errcode = WERR_OK; - } + errcode = print_queue_pause(p->server_info, snum); break; case SPOOLSS_PRINTER_CONTROL_RESUME: case SPOOLSS_PRINTER_CONTROL_UNPAUSE: - if (print_queue_resume(p->server_info, snum, &errcode)) { - errcode = WERR_OK; - } + errcode = print_queue_resume(p->server_info, snum); break; case SPOOLSS_PRINTER_CONTROL_PURGE: - if (print_queue_purge(p->server_info, snum, &errcode)) { - errcode = WERR_OK; - } + errcode = print_queue_purge(p->server_info, snum); break; default: return WERR_UNKNOWN_LEVEL; |