aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-08-28 20:01:52 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-08-28 20:01:52 +0300
commit6cae5d706c5802f28c46cece95b1cf8bd08f387a (patch)
tree9ee927f2a699b56b6145bf6fce200d17b6a12b18 /src/common/sandbox.h
parent8b8f87a06ad5f18460012d0a0b4ceaa119bbccd3 (diff)
downloadtor-6cae5d706c5802f28c46cece95b1cf8bd08f387a.tar
tor-6cae5d706c5802f28c46cece95b1cf8bd08f387a.tar.gz
Added doxygen struct doc and replaced func() with funct(void)
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index a844fc554..d7e117286 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -46,12 +46,16 @@
* parameters for open, openat, execve, stat64.
*/
struct pfd_elem {
- int syscall; // syscall associated with parameter
+ /** syscall associated with parameter. */
+ int syscall;
- char pindex; // parameter index
- intptr_t param; // parameter value
+ /** parameter index. */
+ char pindex;
+ /** parameter value. */
+ intptr_t param;
- char prot; // parameter flag (0 = not protected, 1 = protected)
+ /** parameter flag (0 = not protected, 1 = protected). */
+ char prot;
struct pfd_elem *next;
};
@@ -101,7 +105,7 @@ void sandbox_set_debugging_fd(int fd);
const char* sandbox_intern_string(const char *param);
/** Creates an empty sandbox configuration file.*/
-sandbox_cfg_t * sandbox_cfg_new();
+sandbox_cfg_t * sandbox_cfg_new(void);
/**
* Function used to add a open allowed filename to a supplied configuration.