[tor-commits] [tor/master] Added doxygen struct doc and replaced func() with funct(void)

nickm at torproject.org nickm at torproject.org
Fri Sep 13 16:31:56 UTC 2013


commit 6cae5d706c5802f28c46cece95b1cf8bd08f387a
Author: Cristian Toader <cristian.matei.toader at gmail.com>
Date:   Wed Aug 28 20:01:52 2013 +0300

    Added doxygen struct doc and replaced func() with funct(void)
---
 src/common/sandbox.c |    2 +-
 src/common/sandbox.h |   14 +++++++++-----
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 8ef8757..13d4ce9 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -1138,7 +1138,7 @@ initialise_libseccomp_sandbox(sandbox_cfg_t* cfg)
 #endif // USE_LIBSECCOMP
 
 sandbox_cfg_t*
-sandbox_cfg_new()
+sandbox_cfg_new(void)
 {
   return NULL;
 }
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index a844fc5..d7e1172 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.





More information about the tor-commits mailing list