use exit(int), not exit(void), consistently - even if the arg has no meaning.

This commit is contained in:
itojun 2002-06-01 11:40:31 +00:00
parent e5aff46bc6
commit 937b671271
4 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.28 2001/07/05 00:58:45 itojun Exp $ */
/* $NetBSD: main.c,v 1.29 2002/06/01 11:40:32 itojun Exp $ */
/*
* Copyright (c) 1996, 1997, 1999
@ -329,7 +329,7 @@ command_quit(arg)
reboot();
/* Note: we shouldn't get to this point! */
panic("Could not reboot!");
exit();
exit(0);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: panic.c,v 1.4 2001/09/20 22:11:30 wiz Exp $ */
/* $NetBSD: panic.c,v 1.5 2002/06/01 11:40:33 itojun Exp $ */
/*
* Copyright (c) 1996
@ -50,5 +50,5 @@ panic(const char *fmt,...)
printf("\n");
va_end(ap);
exit();
exit(0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: exit.c,v 1.13 1999/02/12 10:51:28 drochner Exp $ */
/* $NetBSD: exit.c,v 1.14 2002/06/01 11:40:31 itojun Exp $ */
/*-
* Copyright (c) 1993 John Brezak
@ -30,10 +30,9 @@
#include "stand.h"
__dead void exit __P((void)) __attribute__((noreturn));
void
exit()
exit(arg)
int arg;
{
panic("exit");
/*NOTREACHED*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: stand.h,v 1.43 2001/09/02 07:04:16 tsutsui Exp $ */
/* $NetBSD: stand.h,v 1.44 2002/06/01 11:40:31 itojun Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -228,6 +228,7 @@ void twiddle __P((void));
void gets __P((char *));
int getfile __P((char *prompt, int mode));
char *strerror __P((int));
__dead void exit __P((int)) __attribute__((noreturn));
__dead void panic __P((const char *, ...)) __attribute__((noreturn));
__dead void _rtt __P((void)) __attribute__((noreturn));
void bcopy __P((const void *, void *, size_t));