From: Sergey Matveev <stargrave@stargrave.org>
Date: Wed, 22 Nov 2023 16:21:29 +0000 (+0300)
Subject: Proper function signatures
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=78be70116a6c6092ab8921f44723313d29b7d2c0;p=ndproxy.git

Proper function signatures

Because with -Werror they won't compile.
---

diff --git a/ndproxy.c b/ndproxy.c
index d2bac05..1b45586 100644
--- 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);
 }