diff options
author | Paul Moore <pmoore@redhat.com> | 2015-05-09 09:24:31 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-05-09 09:24:31 -0400 |
commit | a8dad719dbcc517fa1dd995c3ed3d296ef20e59f (patch) | |
tree | 357eef1270edb540c4c86463f295d0c8b7e8bebb | |
parent | 3823bcabf9ca675fae971cc9e8d753dde5919a3d (diff) | |
download | libseccomp-a8dad719dbcc517fa1dd995c3ed3d296ef20e59f.tar.gz |
docs: fix a number of problems in the function header comments
Reported-by: Brian Cain <brian.cain@gmail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
(imported from commit 0cd288bee5879af3aab6c447de55c90d4971e38c)
-rw-r--r-- | src/api.c | 2 | ||||
-rw-r--r-- | src/arch.c | 2 | ||||
-rw-r--r-- | src/db.c | 8 | ||||
-rw-r--r-- | src/gen_bpf.c | 4 | ||||
-rw-r--r-- | src/hash.c | 6 |
5 files changed, 10 insertions, 12 deletions
@@ -380,7 +380,7 @@ syscall_priority_failure: * @param action the filter action * @param syscall the syscall number * @param arg_cnt the number of argument filters in the argument filter chain - * @param arg_list the argument filter chain, (uint, enum scmp_compare, ulong) + * @param arg_array the argument filter chain, (uint, enum scmp_compare, ulong) * * This function adds a new argument/comparison/value to the seccomp filter for * a syscall; multiple arguments can be specified and they will be chained @@ -129,7 +129,7 @@ const struct arch_def *arch_def_lookup(uint32_t token) /** * Lookup the architecture definition by name - * @param arch the architecure name + * @param arch_name the architecure name * * Return the matching architecture definition, returns NULL on failure. * @@ -72,10 +72,9 @@ static unsigned int __db_tree_free(struct db_arg_chain_tree *tree) /** * Free a syscall filter argument chain tree - * @param list the argument chain list + * @param tree the argument chain list * - * This function frees a syscall argument chain list and returns the number of - * nodes freed. + * This function frees a tree and returns the number of nodes freed. * */ static unsigned int _db_tree_free(struct db_arg_chain_tree *tree) @@ -576,7 +575,7 @@ int db_col_attr_get(const struct db_filter_col *col, /** * Set a filter attribute - * @param db the seccomp filter collection + * @param col the seccomp filter collection * @param attr the filter attribute * @param value the filter attribute value * @@ -699,7 +698,6 @@ int db_col_db_remove(struct db_filter_col *col, uint32_t arch_token) /** * Free and reset the seccomp filter DB * @param db the seccomp filter DB - * @param def_action the default filter action * * This function frees any existing filters and resets the filter DB to a * default state; only the DB architecture is preserved. diff --git a/src/gen_bpf.c b/src/gen_bpf.c index 175bf6b..452d954 100644 --- a/src/gen_bpf.c +++ b/src/gen_bpf.c @@ -516,7 +516,7 @@ static void _program_free(struct bpf_program *prg) /** * Free the BPF state - * @param the BPF state + * @param state the BPF state * * Free all of the BPF state, including the BPF program if present. * @@ -1943,7 +1943,7 @@ bpf_generate_end: /** * Free memory associated with a BPF representation - * @param fprog the BPF representation + * @param program the BPF representation * * Free the memory associated with a BPF representation generated by the * gen_bpf_generate() function. @@ -189,7 +189,7 @@ static uint32_t jhash_word(const uint32_t *k, size_t length, uint32_t initval) /** * Hash a variable-length key into a 32-bit value - * @param k the key (the unaligned variable-length array of bytes) + * @param key the key (the unaligned variable-length array of bytes) * @param length the length of the key, counting by bytes * @param initval can be any 4-byte value * @@ -456,7 +456,7 @@ static uint32_t jhash_le(const void *key, size_t length, uint32_t initval) /** * Hash a variable-length key into a 32-bit value - * @param k the key (the unaligned variable-length array of bytes) + * @param key the key (the unaligned variable-length array of bytes) * @param length the length of the key, counting by bytes * @param initval can be any 4-byte value * @@ -655,7 +655,7 @@ static uint32_t jhash_be( const void *key, size_t length, uint32_t initval) /** * Hash a variable-length key into a 32-bit value - * @param k the key (the unaligned variable-length array of bytes) + * @param key the key (the unaligned variable-length array of bytes) * @param length the length of the key, counting by bytes * @param initval can be any 4-byte value * |