-Wall -Werror -W -pedantic clean

This commit is contained in:
tg
2004-10-28 11:03:24 +00:00
parent 06411e2978
commit 7ad780aa98
28 changed files with 442 additions and 465 deletions

15
trap.c
View File

@ -1,4 +1,4 @@
/** $MirBSD: trap.c,v 1.3 2004/09/21 11:57:16 tg Exp $ */
/** $MirBSD: trap.c,v 1.4 2004/10/28 11:03:24 tg Exp $ */
/* $OpenBSD: trap.c,v 1.13 2003/02/28 09:45:09 jmc Exp $ */
/*
@ -9,15 +9,17 @@
#define FROM_TRAP_C
#include "sh.h"
__RCSID("$MirBSD: trap.c,v 1.4 2004/10/28 11:03:24 tg Exp $");
/* Table is indexed by signal number
*
* The script siglist.sh generates siglist.out, which is a sorted, complete
* list of signals
*/
Trap sigtraps[SIGNALS+1] = {
{ SIGEXIT_, "EXIT", "Signal 0" },
{ SIGEXIT_, "EXIT", "Signal 0", NULL, 0, 0, 0, 0 },
#include "siglist.out" /* generated by siglist.sh */
{ SIGERR_, "ERR", "Error handler" },
{ SIGERR_, "ERR", "Error handler", NULL, 0, 0, 0, 0 },
};
static struct sigaction Sigact_ign, Sigact_trap;
@ -68,8 +70,7 @@ alarm_init()
}
static RETSIGTYPE
alarm_catcher(sig)
int sig;
alarm_catcher(int sig GCC_FUNC_ATTR(unused))
{
int errno_ = errno;
@ -93,7 +94,7 @@ gettrap(name, igncase)
int igncase;
{
int i;
register Trap *p;
Trap *p;
if (digit(*name)) {
int n;
@ -201,7 +202,7 @@ runtraps(flag)
int flag;
{
int i;
register Trap *p;
Trap *p;
#ifdef KSH
if (ksh_tmout_state == TMOUT_LEAVING) {