Arguments to cleanup are not needed. - catpoint - Catpoint simple presenting software. HTML git clone git://bitreich.org/catpoint/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/catpoint/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 626219d14e08511fdccde2d75e4d0bcda52d2d3a DIR parent 6837d1b5e66be2650ffeb3f5d1020d72c60ef736 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sun, 20 Dec 2020 14:40:03 +0100 Arguments to cleanup are not needed. Diffstat: M catpoint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR 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); }