summaryrefslogtreecommitdiff
path: root/libcli/util
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-25 16:53:05 +0100
committerMichael Adam <obnox@samba.org>2009-02-26 13:22:54 +0100
commit6c197ffa3090b88663b2507006022fcd438de54c (patch)
treee27cac984b5219dc96b9e7f22383576c31494f0f /libcli/util
parente026d217bf0d7641ec4f53ede8c6f8eda144a489 (diff)
downloadsamba-6c197ffa3090b88663b2507006022fcd438de54c.tar.gz
samba-6c197ffa3090b88663b2507006022fcd438de54c.tar.bz2
samba-6c197ffa3090b88663b2507006022fcd438de54c.zip
s3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to libcli/util/werror.h
Michael
Diffstat (limited to 'libcli/util')
-rw-r--r--libcli/util/werror.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcli/util/werror.h b/libcli/util/werror.h
index 4b34b14243..950f009f28 100644
--- a/libcli/util/werror.h
+++ b/libcli/util/werror.h
@@ -60,6 +60,12 @@ typedef uint32_t WERROR;
}\
} while (0)
+#define W_ERROR_NOT_OK_GOTO_DONE(x) do { \
+ if (!W_ERROR_IS_OK(x)) {\
+ goto done;\
+ }\
+} while (0)
+
/* these are win32 error codes. There are only a few places where
these matter for Samba, primarily in the NT printing code */
#define WERR_OK W_ERROR(0)