qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH 2/3] qemu-seccomp: manually expand SCMP_A1


From: Alex Bennée
Subject: [Qemu-devel] [RFC PATCH 2/3] qemu-seccomp: manually expand SCMP_A1
Date: Fri, 10 Aug 2018 18:11:00 +0100

The expansion of ((struct scmp_arg_cmp){1, SCMP_CMP_NE, 5}) doesn't
work with -std=gnu99.

Signed-off-by: Alex Bennée <address@hidden>
---
 qemu-seccomp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu-seccomp.c b/qemu-seccomp.c
index 9cd8eb9499..4dc1c22924 100644
--- a/qemu-seccomp.c
+++ b/qemu-seccomp.c
@@ -39,7 +39,7 @@ struct QemuSeccompSyscall {
 };
 
 const struct scmp_arg_cmp sched_setscheduler_arg[] = {
-    SCMP_A1(SCMP_CMP_NE, SCHED_IDLE)
+    {1, SCMP_CMP_NE, SCHED_IDLE}
 };
 
 static const struct QemuSeccompSyscall blacklist[] = {
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]