diff --git a/appl/ftp/ftp/cmds.c b/appl/ftp/ftp/cmds.c index 4f3214390..3121a310c 100644 --- a/appl/ftp/ftp/cmds.c +++ b/appl/ftp/ftp/cmds.c @@ -1224,7 +1224,7 @@ void shell(int argc, char **argv) { pid_t pid; - RETSIGTYPE (*old1)(), (*old2)(); + RETSIGTYPE (*old1)(int), (*old2)(int); char shellnam[40], *shell, *namep; int status; @@ -1612,7 +1612,7 @@ void doproxy(int argc, char **argv) { struct cmd *c; - RETSIGTYPE (*oldintr)(); + RETSIGTYPE (*oldintr)(int); if (argc < 2 && !another(&argc, &argv, "command")) { printf("usage: %s command\n", argv[0]); diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index ba68bd200..5568c1cd5 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -622,7 +622,7 @@ sendrequest (char *cmd, char *local, char *remote, char *lmode, int printnames) int c, d; FILE *fin, *dout = 0; int (*closefunc) (FILE *); - RETSIGTYPE (*oldintr)(), (*oldintp)(); + RETSIGTYPE (*oldintr)(int), (*oldintp)(int); long bytes = 0, hashbytes = HASHBYTES; char *rmode = "w"; diff --git a/appl/telnet/telnet/sys_bsd.c b/appl/telnet/telnet/sys_bsd.c index eccafe885..8de3326e6 100644 --- a/appl/telnet/telnet/sys_bsd.c +++ b/appl/telnet/telnet/sys_bsd.c @@ -314,10 +314,10 @@ TerminalRestoreState() #ifdef SIGTSTP -static RETSIGTYPE susp(); +static RETSIGTYPE susp(int); #endif /* SIGTSTP */ #ifdef SIGINFO -static RETSIGTYPE ayt(); +static RETSIGTYPE ayt(int); #endif void @@ -495,7 +495,7 @@ TerminalNewMode(int f) } else { sigset_t sm; #ifdef SIGINFO - RETSIGTYPE ayt_status(); + RETSIGTYPE ayt_status(int); signal(SIGINFO, ayt_status); #endif diff --git a/lib/kafs/afssys.c b/lib/kafs/afssys.c index 70f87690e..5ea689d9b 100644 --- a/lib/kafs/afssys.c +++ b/lib/kafs/afssys.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan + * Copyright (c) 1995 - 200 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -283,7 +283,7 @@ int k_hasafs(void) { #if !defined(NO_AFS) && defined(SIGSYS) - RETSIGTYPE (*saved_func)(); + RETSIGTYPE (*saved_func)(int); #endif int saved_errno; char *env = getenv ("AFS_SYSCALL"); diff --git a/lib/roken/roken-common.h b/lib/roken/roken-common.h index ca05a87b4..0f1388293 100644 --- a/lib/roken/roken-common.h +++ b/lib/roken/roken-common.h @@ -125,7 +125,7 @@ #endif #ifndef SIG_ERR -#define SIG_ERR ((RETSIGTYPE (*)())-1) +#define SIG_ERR ((RETSIGTYPE (*)(int))-1) #endif /* @@ -235,7 +235,7 @@ #if IRIX != 4 /* fix for compiler bug */ #ifdef RETSIGTYPE -typedef RETSIGTYPE (*SigAction)(/* int??? */); +typedef RETSIGTYPE (*SigAction)(int); SigAction signal(int iSig, SigAction pAction); /* BSD compatible */ #endif #endif diff --git a/lib/roken/signal.c b/lib/roken/signal.c index 9cbd98295..583724c94 100644 --- a/lib/roken/signal.c +++ b/lib/roken/signal.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan + * Copyright (c) 1995 - 2000 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -49,8 +49,6 @@ RCSID("$Id$"); * Do we need any extra hacks for SIGCLD and/or SIGCHLD? */ -typedef RETSIGTYPE (*SigAction)(/* int??? */); - SigAction signal(int iSig, SigAction pAction) {