This commit is contained in:
albert
2002-12-09 07:53:09 +00:00
parent 5087f3dbf6
commit b657e7e08a
7 changed files with 20 additions and 9 deletions

12
watch.c
View File

@ -42,15 +42,15 @@ static int first_screen = 1;
#define min(x,y) ((x) > (y) ? (y) : (x))
static void
do_usage(void)
static void do_usage(void) NORETURN;
static void do_usage(void)
{
fprintf(stderr, usage, progname);
exit(1);
}
static void
do_exit(int status)
static void do_exit(int status) NORETURN;
static void do_exit(int status)
{
if (curses_started)
endwin();
@ -58,8 +58,8 @@ do_exit(int status)
}
/* signal handler */
static void
die(int notused)
static void die(int notused) NORETURN;
static void die(int notused)
{
(void) notused;
do_exit(0);