[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] make check-spaces fix
commit 3e803a1f18aa04c69e18652f84bf054841706eea
Author: Cristian Toader <cristian.matei.toader@xxxxxxxxx>
Date: Thu Aug 29 16:53:12 2013 +0300
make check-spaces fix
---
src/common/sandbox.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 4fd95f0..748141c 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) {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits