aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-08-29 16:53:12 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-08-29 16:53:12 +0300
commit3e803a1f18aa04c69e18652f84bf054841706eea (patch)
tree0b27d4886d9b1b7547037abba40b06de0b44143b
parent1118bd99108d3ab3404fadfa7eb8e01616836d71 (diff)
downloadtor-3e803a1f18aa04c69e18652f84bf054841706eea.tar
tor-3e803a1f18aa04c69e18652f84bf054841706eea.tar.gz
make check-spaces fix
-rw-r--r--src/common/sandbox.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 4fd95f06d..748141cda 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -679,14 +679,15 @@ sandbox_intern_string(const char *param)
}
static int
-prot_strings(sandbox_cfg_t* cfg) {
+prot_strings(sandbox_cfg_t* cfg)
+{
int ret = 0;
int pr_mem_size = 0, pr_mem_left = 0;
char *pr_mem_next = NULL, *pr_mem_base;
sandbox_cfg_t *el = NULL;
// get total number of bytes required to mmap
- for(el = cfg; el != NULL; el = el->next) {
+ for (el = cfg; el != NULL; el = el->next) {
pr_mem_size += strlen((char*) el->param) + 1;
}
@@ -768,7 +769,7 @@ sandbox_cfg_allow_stat64_filename_array(sandbox_cfg_t **cfg, ...)
va_list ap;
va_start(ap, cfg);
- while((fn = va_arg(ap, char*)) != NULL) {
+ while ((fn = va_arg(ap, char*)) != NULL) {
int fr = va_arg(ap, int);
rc = sandbox_cfg_allow_stat64_filename(cfg, fn, fr);
@@ -812,7 +813,7 @@ sandbox_cfg_allow_open_filename_array(sandbox_cfg_t **cfg, ...)
va_list ap;
va_start(ap, cfg);
- while((fn = va_arg(ap, char*)) != NULL) {
+ while ((fn = va_arg(ap, char*)) != NULL) {
int fr = va_arg(ap, int);
rc = sandbox_cfg_allow_open_filename(cfg, fn, fr);
@@ -855,7 +856,7 @@ sandbox_cfg_allow_openat_filename_array(sandbox_cfg_t **cfg, ...)
va_list ap;
va_start(ap, cfg);
- while((fn = va_arg(ap, char*)) != NULL) {
+ while ((fn = va_arg(ap, char*)) != NULL) {
int fr = va_arg(ap, int);
rc = sandbox_cfg_allow_openat_filename(cfg, fn, fr);
@@ -896,7 +897,7 @@ sandbox_cfg_allow_execve_array(sandbox_cfg_t **cfg, ...)
va_list ap;
va_start(ap, cfg);
- while((fn = va_arg(ap, char*)) != NULL) {
+ while ((fn = va_arg(ap, char*)) != NULL) {
rc = sandbox_cfg_allow_execve(cfg, fn);
if (rc) {