From a4f575be610e1f6ff6f12c0d4adbc09c270eb274 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Sun, 20 Dec 2020 14:41:04 +0100 Subject: [PATCH] Signal handler needs to have int for signal number. --- catpoint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catpoint.c b/catpoint.c index 4464ab6..7c50823 100644 --- a/catpoint.c +++ b/catpoint.c @@ -17,7 +17,7 @@ char **p; /* the slides */ int n; /* the number of slides */ void -cleanup(void) +cleanup(int sig) { int i; @@ -151,7 +151,7 @@ again: } /* unmap mem */ - cleanup(); + cleanup(0); - return (0); + return 0; }