Added doxygen struct doc and replaced func() with funct(void)

This commit is contained in:
Cristian Toader 2013-08-28 20:01:52 +03:00
parent 8b8f87a06a
commit 6cae5d706c
2 changed files with 10 additions and 6 deletions

View File

@ -1138,7 +1138,7 @@ initialise_libseccomp_sandbox(sandbox_cfg_t* cfg)
#endif // USE_LIBSECCOMP #endif // USE_LIBSECCOMP
sandbox_cfg_t* sandbox_cfg_t*
sandbox_cfg_new() sandbox_cfg_new(void)
{ {
return NULL; return NULL;
} }

View File

@ -46,12 +46,16 @@
* parameters for open, openat, execve, stat64. * parameters for open, openat, execve, stat64.
*/ */
struct pfd_elem { struct pfd_elem {
int syscall; // syscall associated with parameter /** syscall associated with parameter. */
int syscall;
char pindex; // parameter index /** parameter index. */
intptr_t param; // parameter value 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; struct pfd_elem *next;
}; };
@ -101,7 +105,7 @@ void sandbox_set_debugging_fd(int fd);
const char* sandbox_intern_string(const char *param); const char* sandbox_intern_string(const char *param);
/** Creates an empty sandbox configuration file.*/ /** 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. * Function used to add a open allowed filename to a supplied configuration.