Skip to content
Snippets Groups Projects
Commit 8e2b9d28 authored by Cristian Toader's avatar Cristian Toader
Browse files

small fixes in documentation and sandbox_getaddrinfo()

parent 6cae5d70
No related branches found
No related tags found
No related merge requests found
......@@ -892,7 +892,7 @@ sandbox_getaddrinfo(const char *name, struct addrinfo **res)
}
*res = NULL;
*res = (struct addrinfo *)malloc(sizeof(struct addrinfo));
if (!res) {
if (*res == NULL) {
return -2;
}
......
......@@ -68,10 +68,10 @@ typedef int (*sandbox_filter_func_t)(scmp_filter_ctx ctx,
/** Type that will be used in step 3 in order to manage multiple sandboxes.*/
typedef struct {
// function pointers associated with the filter
/** function pointers associated with the filter */
sandbox_filter_func_t *filter_func;
// filter function pointer parameters
/** filter function pointer parameters */
sandbox_cfg_t *filter_dynamic;
} sandbox_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment