diff options
author | Günther Deschner <gd@samba.org> | 2015-12-03 15:24:10 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-09-28 00:04:16 +0200 |
commit | 46eace2f9f2e18dfbc5bee7c82dcde58c152f9bc (patch) | |
tree | 236de130a613d36a2543487c135b4d6d20730b3f | |
parent | b2ab826ccb56d42e8a9d4c557cd06b5790c8e367 (diff) | |
download | samba-46eace2f9f2e18dfbc5bee7c82dcde58c152f9bc.tar.gz |
werror: replace WERR_BADFUNC with WERR_INVALID_FUNCTION in source3/rpc_server/spoolss/srv_spoolss_nt.c
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index fc3a4de72e5..caac06535c1 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -6012,7 +6012,7 @@ static WERROR control_printer(struct policy_handle *handle, uint32_t command, { const struct auth_session_info *session_info = p->session_info; int snum; - WERROR errcode = WERR_BADFUNC; + WERROR errcode = WERR_INVALID_FUNCTION; struct printer_handle *Printer = find_printer_index_by_hnd(p, handle); if (!Printer) { @@ -7675,7 +7675,7 @@ WERROR _spoolss_SetJob(struct pipes_struct *p, { const struct auth_session_info *session_info = p->session_info; int snum; - WERROR errcode = WERR_BADFUNC; + WERROR errcode = WERR_INVALID_FUNCTION; if (!get_printer_snum(p, r->in.handle, &snum, NULL)) { return WERR_BADFID; @@ -10542,7 +10542,7 @@ static WERROR process_xcvtcp_command(TALLOC_CTX *mem_ctx, return xcvtcp_cmds[i].fn(mem_ctx, token, inbuf, outbuf, needed); } - return WERR_BADFUNC; + return WERR_INVALID_FUNCTION; } /******************************************************************* @@ -10599,7 +10599,7 @@ static WERROR process_xcvlocal_command(TALLOC_CTX *mem_ctx, if ( strcmp( command, xcvlocal_cmds[i].name ) == 0 ) return xcvlocal_cmds[i].fn(mem_ctx, token, inbuf, outbuf, needed); } - return WERR_BADFUNC; + return WERR_INVALID_FUNCTION; } /**************************************************************** |