Commit d136b576 authored by Philip Withnall's avatar Philip Withnall Committed by Carlos Garnacho

tracker-seccomp: Rewrap macros to make them clearer

This introduces no functional changes.

https://bugzilla.gnome.org/show_bug.cgi?id=777591
parent 62ed6a1a
......@@ -38,9 +38,15 @@
#include <seccomp.h>
#define ALLOW_RULE(call) G_STMT_START { if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) < 0) goto out; } G_STMT_END
#define ERROR_RULE(call, error) G_STMT_START { if (seccomp_rule_add (ctx, SCMP_ACT_ERRNO (error), SCMP_SYS(call), 0) < 0) goto out; } G_STMT_END
#define ALLOW_RULE(call) G_STMT_START { \
if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) < 0) \
goto out; \
} G_STMT_END
#define ERROR_RULE(call, error) G_STMT_START { \
if (seccomp_rule_add (ctx, SCMP_ACT_ERRNO (error), SCMP_SYS(call), 0) < 0) \
goto out; \
} G_STMT_END
gboolean
tracker_seccomp_init (void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment