diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-12 14:12:56 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-12 14:12:56 +0300 |
commit | 0a3d1685ae7f7dd62b829466e8abae75a17a2482 (patch) | |
tree | 019e9816abed14fe1b0b41be5aa31ea43794201c /src | |
parent | 4702cdc99d734ebb7bbb68d65c00a91fdbc13463 (diff) | |
download | tor-0a3d1685ae7f7dd62b829466e8abae75a17a2482.tar tor-0a3d1685ae7f7dd62b829466e8abae75a17a2482.tar.gz |
remove debugging code
Diffstat (limited to 'src')
-rw-r--r-- | src/common/sandbox.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 5961c0641..dc8885e18 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -53,10 +53,6 @@ #include <time.h> #include <poll.h> -// TODO: remove test -static void *test_buf_base = NULL; -static int test_buf_len = 0; - /**Determines if at least one sandbox is active.*/ static int sandbox_active = 0; /** Holds the parameter list configuration for the sandbox.*/ @@ -864,10 +860,6 @@ prot_strings(scmp_filter_ctx ctx, sandbox_cfg_t* cfg) } } - // TODO: remove, test - test_buf_base = pr_mem_base; - test_buf_len = pr_mem_size; - // protecting from writes if (mprotect(pr_mem_base, MALLOC_MP_LIM + pr_mem_size, PROT_READ)) { log_err(LD_BUG,"(Sandbox) failed to protect memory! mprotect: %s", |