summaryrefslogtreecommitdiff
path: root/security/lasso/patches/patch-cc
diff options
context:
space:
mode:
Diffstat (limited to 'security/lasso/patches/patch-cc')
-rw-r--r--security/lasso/patches/patch-cc77
1 files changed, 0 insertions, 77 deletions
diff --git a/security/lasso/patches/patch-cc b/security/lasso/patches/patch-cc
deleted file mode 100644
index c6466cda4db..00000000000
--- a/security/lasso/patches/patch-cc
+++ /dev/null
@@ -1,77 +0,0 @@
-$NetBSD: patch-cc,v 1.1 2009/12/01 08:49:46 manu Exp $
---- lasso/utils.h.orig 2009-11-30 18:54:46.000000000 +0100
-+++ lasso/utils.h 2009-11-30 19:31:22.000000000 +0100
-@@ -336,4 +336,73 @@
- g_return_val_if_fail(name != NULL, LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ);
-
-+/**
-+ * The following macros are made to create some formalism for function's cleanup code.
-+ *
-+ * The exit label should be called 'cleanup'. And for functions returning an integer error code, the
-+ * error code should be named 'rc' and 'return rc;' should be the last statement of the function.
-+ */
-+
-+/**
-+ * goto_cleanup_with_rc:
-+ * @rc_value: integer return value
-+ *
-+ * This macro jump to the 'cleanup' label and set the return value to @rc_value.
-+ *
-+ */
-+#define goto_cleanup_with_rc(rc_value) \
-+ {\
-+ rc = (rc_value); \
-+ goto cleanup; \
-+ }
-+
-+/**
-+ * goto_cleanup_if_fail:
-+ * @condition: a boolean condition
-+ *
-+ * Jump to the 'cleanup' label if the @condition is FALSE.
-+ *
-+ */
-+#define goto_cleanup_if_fail(condition) \
-+ {\
-+ if (! (condition) ) {\
-+ goto cleanup; \
-+ } \
-+ }
-+
-+/**
-+ * goto_cleanup_if_fail_with_rc:
-+ * @condition: a boolean condition
-+ * @rc_value: integer return value
-+ *
-+ * Jump to the 'cleanup' label if the @condition is FALSE and set the return value to
-+ * @rc_value.
-+ *
-+ */
-+#define goto_cleanup_if_fail_with_rc(condition, rc_value) \
-+ {\
-+ if (! (condition) ) {\
-+ rc = (rc_value); \
-+ goto cleanup; \
-+ } \
-+ }
-+
-+/**
-+ * goto_cleanup_if_fail_with_rc_with_warning:
-+ * @condition: a boolean condition
-+ * @rc_value: integer return value
-+ *
-+ * Jump to the 'cleanup' label if the @condition is FALSE and set the return value to
-+ * @rc_value. Also emit a warning, showing the condition and the return value.
-+ *
-+ */
-+#define goto_cleanup_if_fail_with_rc_with_warning(condition, rc_value) \
-+ {\
-+ if (! (condition) ) {\
-+ g_warning("%s failed, returning %s", __STRING(condition), __STRING(rc_value));\
-+ rc = (rc_value); \
-+ goto cleanup; \
-+ } \
-+ }
-+
- #define goto_exit_with_rc(rc_value) \
- {\