]> Sergey Matveev's repositories - ndproxy.git/commitdiff
Proper function signatures
authorSergey Matveev <stargrave@stargrave.org>
Wed, 22 Nov 2023 16:21:29 +0000 (19:21 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 22 Nov 2023 16:37:21 +0000 (19:37 +0300)
Because with -Werror they won't compile.

ndproxy.c

index d2bac05df48a0dcda3aa10d105ffb37168905e27..1b45586209f67b69927dd116efdd89457cece137 100644 (file)
--- a/ndproxy.c
+++ b/ndproxy.c
@@ -54,7 +54,7 @@ static int hook_added = false;
 
 static pfil_hook_t pfh_hook;
 
-static void register_hook() {
+static void register_hook(void) {
   struct pfil_hook_args pha;
   struct pfil_link_args pla;
 
@@ -78,7 +78,7 @@ static void register_hook() {
   hook_added = true;
 }
 
-static void unregister_hook() {
+static void unregister_hook(void) {
   if (!hook_added) return;
   pfil_remove_hook(pfh_hook);
 }