[tor-commits] [tor/master] Fix a warning related to SCMP_CMP definition in header.
nickm at torproject.org
nickm at torproject.org
Fri Sep 13 16:31:56 UTC 2013
commit a6ada1a50cbedebf15667b4448f6890140f56001
Author: Nick Mathewson <nickm at torproject.org>
Date: Mon Sep 9 15:16:30 2013 -0400
Fix a warning related to SCMP_CMP definition in header.
SCMP_CMP(a,b,c) leaves the fourth field of the structure undefined,
giving a missing-initializer error. All of our uses are
three-argument, so I'm overriding the default.
---
src/common/sandbox.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 1fd2119..c6c9348 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -61,6 +61,9 @@ static sandbox_cfg_t *filter_dynamic = NULL;
/** Holds a list of pre-recorded results from getaddrinfo().*/
static sb_addr_info_t *sb_addr_info = NULL;
+#undef SCMP_CMP
+#define SCMP_CMP(a,b,c) ((struct scmp_arg_cmp){(a),(b),(c),0})
+
/** Variable used for storing all syscall numbers that will be allowed with the
* stage 1 general Tor sandbox.
*/
More information about the tor-commits
mailing list