summaryrefslogtreecommitdiff
path: root/src/common/sandbox.c
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-09-02 11:45:09 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-09-02 11:45:09 +0300
commitc584537a038cdeede4d52b52a73dcbb3035112a4 (patch)
tree2c0415b4e54b5f4d592b26851bff77c103a27261 /src/common/sandbox.c
parent1ef0b2e1a37878ebbc29b03fefb214b7501656a6 (diff)
downloadtor-c584537a038cdeede4d52b52a73dcbb3035112a4.tar.gz
tor-c584537a038cdeede4d52b52a73dcbb3035112a4.zip
make check-spaces fix
Diffstat (limited to 'src/common/sandbox.c')
-rw-r--r--src/common/sandbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 41c3b44d78..a4919121cf 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -918,7 +918,7 @@ sandbox_getaddrinfo(const char *name, struct addrinfo **res)
*res = NULL;
for (el = sb_addr_info; el; el = el->next) {
- if(!strcmp(el->name, name)) {
+ if (!strcmp(el->name, name)) {
*res = (struct addrinfo *)malloc(sizeof(struct addrinfo));
if (!res) {
return -2;
@@ -941,7 +941,7 @@ sandbox_add_addrinfo(const char* name)
sb_addr_info_t *el = NULL;
el = (sb_addr_info_t*) malloc(sizeof(sb_addr_info_t));
- if(!el) {
+ if (!el) {
log_err(LD_BUG,"(Sandbox) failed to allocate addr info!");
ret = -2;
goto out;