werror: replace WERR_BADFUNC with WERR_INVALID_FUNCTION in source3/rpc_server/spoolss...
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:10 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:16 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/spoolss/srv_spoolss_nt.c

index fc3a4de72e58909ffd3a9cef2c8d4ab624c3daf2..caac06535c12024cc8101ca9fe68c7e470ed26aa 100644 (file)
@@ -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;
 }
 
 /****************************************************************