mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Adjust ng_{name,ID}_rehash() definitions to avoid clang 15 warnings
With clang 15, the following -Werror warnings are produced:
sys/netgraph/ng_base.c:981:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
ng_name_rehash()
^
void
sys/netgraph/ng_base.c:1012:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
ng_ID_rehash()
^
void
This is because ng_name_rehash() and ng_ID_rehash() are declared with
(void) argument lists, but defined with empty argument lists. Make the
definitions match the declarations.
MFC after: 3 days
This commit is contained in:
parent
3b41ae3212
commit
dba7f4aa09
1 changed files with 2 additions and 2 deletions
|
|
@ -978,7 +978,7 @@ ng_unname(node_p node)
|
|||
* Allocate a bigger name hash.
|
||||
*/
|
||||
static void
|
||||
ng_name_rehash()
|
||||
ng_name_rehash(void)
|
||||
{
|
||||
struct nodehash *new;
|
||||
uint32_t hash;
|
||||
|
|
@ -1009,7 +1009,7 @@ ng_name_rehash()
|
|||
* Allocate a bigger ID hash.
|
||||
*/
|
||||
static void
|
||||
ng_ID_rehash()
|
||||
ng_ID_rehash(void)
|
||||
{
|
||||
struct nodehash *new;
|
||||
uint32_t hash;
|
||||
|
|
|
|||
Loading…
Reference in a new issue