werror: removed WERR_UNKNOWN_LEVEL
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:43 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:35 +0000 (00:04 +0200)
Guenther

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

index 83ca1208a6822dea108e52295a70c210f7f99f6c..d053b5ffd841c36184ddde2f6af12da320fcf597 100644 (file)
@@ -215,7 +215,6 @@ typedef uint32_t WERROR;
 #define WERR_FOOBAR WERR_GEN_FAILURE
 
 /* TODO: remove WERR_UNKNOWN_LEVEL in all callers */
-#define WERR_UNKNOWN_LEVEL WERR_INVALID_LEVEL
 
 /*****************************************************************************
  Auto-generated Win32 error from:
index 8f1faa3777ca183c0432633d1582d524391a5276..99e5eb2add1295805f01baa96cd894ccd3964e4e 100644 (file)
@@ -4814,7 +4814,7 @@ WERROR _spoolss_GetPrinter(struct pipes_struct *p,
                struct dcerpc_binding_handle *b;
 
                if (r->in.level != 3) {
-                       result = WERR_UNKNOWN_LEVEL;
+                       result = WERR_INVALID_LEVEL;
                        goto err_info_free;
                }