commit 626219d14e08511fdccde2d75e4d0bcda52d2d3a
parent 6837d1b5e66be2650ffeb3f5d1020d72c60ef736
Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 20 Dec 2020 14:40:03 +0100
Arguments to cleanup are not needed.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/catpoint.c b/catpoint.c
@@ -17,11 +17,11 @@ char **p; /* the slides */
int n; /* the number of slides */
void
-cleanup(int s)
+cleanup(void)
{
int i;
- for (i = 0; i<n; i++)
+ for (i = 0; i < n; i++)
munmap(p[i], 0x1000);
endwin(); /* restore terminal */
@@ -151,7 +151,7 @@ again:
}
/* unmap mem */
- cleanup(0);
+ cleanup();
return (0);
}