Arguments to cleanup are not needed.
This commit is contained in:
parent
6837d1b5e6
commit
626219d14e
@ -17,11 +17,11 @@ char **p; /* the slides */
|
|||||||
int n; /* the number of slides */
|
int n; /* the number of slides */
|
||||||
|
|
||||||
void
|
void
|
||||||
cleanup(int s)
|
cleanup(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i<n; i++)
|
for (i = 0; i < n; i++)
|
||||||
munmap(p[i], 0x1000);
|
munmap(p[i], 0x1000);
|
||||||
|
|
||||||
endwin(); /* restore terminal */
|
endwin(); /* restore terminal */
|
||||||
@ -151,7 +151,7 @@ again:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* unmap mem */
|
/* unmap mem */
|
||||||
cleanup(0);
|
cleanup();
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user