aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-09 15:16:30 -0400
committerNick Mathewson <nickm@torproject.org>2013-09-09 15:16:30 -0400
commita6ada1a50cbedebf15667b4448f6890140f56001 (patch)
tree004c94f0a92969d371f0cdcc24109d46b04d43ed /src
parentcc35d8be8472ae7ae1ebc3421ff798ec1d893c06 (diff)
downloadtor-a6ada1a50cbedebf15667b4448f6890140f56001.tar
tor-a6ada1a50cbedebf15667b4448f6890140f56001.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 1fd2119fa..c6c93489c 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.
*/