summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-02-08 15:01:15 +0100
committerDavid Disseldorp <ddiss@samba.org>2012-06-26 16:10:39 +0200
commite1ddf8f0e41643933c2aa58dc9421cbc7631e2e5 (patch)
tree943805c1965b1db294e9f349f9840460a0c7a4eb /source3/rpc_server
parent97073589d03f8ea4b871c58cfc86603909568da2 (diff)
downloadsamba-e1ddf8f0e41643933c2aa58dc9421cbc7631e2e5.tar.gz
samba-e1ddf8f0e41643933c2aa58dc9421cbc7631e2e5.tar.bz2
samba-e1ddf8f0e41643933c2aa58dc9421cbc7631e2e5.zip
s3-printing: clean up print_job_pause/resume interface
Currently both return a bool and sometimes set a werr pointer argument, always return werror instead.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index fab5579223..7befe7fd8f 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -7381,17 +7381,13 @@ WERROR _spoolss_SetJob(struct pipes_struct *p,
}
break;
case SPOOLSS_JOB_CONTROL_PAUSE:
- if (print_job_pause(session_info, p->msg_ctx,
- snum, r->in.job_id, &errcode)) {
- errcode = WERR_OK;
- }
+ errcode = print_job_pause(session_info, p->msg_ctx,
+ snum, r->in.job_id);
break;
case SPOOLSS_JOB_CONTROL_RESTART:
case SPOOLSS_JOB_CONTROL_RESUME:
- if (print_job_resume(session_info, p->msg_ctx,
- snum, r->in.job_id, &errcode)) {
- errcode = WERR_OK;
- }
+ errcode = print_job_resume(session_info, p->msg_ctx,
+ snum, r->in.job_id);
break;
case 0:
errcode = WERR_OK;