Signal handler needs to have int for signal number. - catpoint - Catpoint simpl… | |
git clone git://bitreich.org/catpoint/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrin… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit a4f575be610e1f6ff6f12c0d4adbc09c270eb274 | |
parent 626219d14e08511fdccde2d75e4d0bcda52d2d3a | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sun, 20 Dec 2020 14:41:04 +0100 | |
Signal handler needs to have int for signal number. | |
Diffstat: | |
M catpoint.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git 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; | |
} |