update prototype for signal handlers to RETSIGTYPE (*)(int)

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8581 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-07-08 12:08:04 +00:00
parent c5debbcc33
commit 8f89435673
6 changed files with 11 additions and 13 deletions

View File

@@ -1224,7 +1224,7 @@ void
shell(int argc, char **argv) shell(int argc, char **argv)
{ {
pid_t pid; pid_t pid;
RETSIGTYPE (*old1)(), (*old2)(); RETSIGTYPE (*old1)(int), (*old2)(int);
char shellnam[40], *shell, *namep; char shellnam[40], *shell, *namep;
int status; int status;
@@ -1612,7 +1612,7 @@ void
doproxy(int argc, char **argv) doproxy(int argc, char **argv)
{ {
struct cmd *c; struct cmd *c;
RETSIGTYPE (*oldintr)(); RETSIGTYPE (*oldintr)(int);
if (argc < 2 && !another(&argc, &argv, "command")) { if (argc < 2 && !another(&argc, &argv, "command")) {
printf("usage: %s command\n", argv[0]); printf("usage: %s command\n", argv[0]);

View File

@@ -622,7 +622,7 @@ sendrequest (char *cmd, char *local, char *remote, char *lmode, int printnames)
int c, d; int c, d;
FILE *fin, *dout = 0; FILE *fin, *dout = 0;
int (*closefunc) (FILE *); int (*closefunc) (FILE *);
RETSIGTYPE (*oldintr)(), (*oldintp)(); RETSIGTYPE (*oldintr)(int), (*oldintp)(int);
long bytes = 0, hashbytes = HASHBYTES; long bytes = 0, hashbytes = HASHBYTES;
char *rmode = "w"; char *rmode = "w";

View File

@@ -314,10 +314,10 @@ TerminalRestoreState()
#ifdef SIGTSTP #ifdef SIGTSTP
static RETSIGTYPE susp(); static RETSIGTYPE susp(int);
#endif /* SIGTSTP */ #endif /* SIGTSTP */
#ifdef SIGINFO #ifdef SIGINFO
static RETSIGTYPE ayt(); static RETSIGTYPE ayt(int);
#endif #endif
void void
@@ -495,7 +495,7 @@ TerminalNewMode(int f)
} else { } else {
sigset_t sm; sigset_t sm;
#ifdef SIGINFO #ifdef SIGINFO
RETSIGTYPE ayt_status(); RETSIGTYPE ayt_status(int);
signal(SIGINFO, ayt_status); signal(SIGINFO, ayt_status);
#endif #endif

View File

@@ -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). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -283,7 +283,7 @@ int
k_hasafs(void) k_hasafs(void)
{ {
#if !defined(NO_AFS) && defined(SIGSYS) #if !defined(NO_AFS) && defined(SIGSYS)
RETSIGTYPE (*saved_func)(); RETSIGTYPE (*saved_func)(int);
#endif #endif
int saved_errno; int saved_errno;
char *env = getenv ("AFS_SYSCALL"); char *env = getenv ("AFS_SYSCALL");

View File

@@ -125,7 +125,7 @@
#endif #endif
#ifndef SIG_ERR #ifndef SIG_ERR
#define SIG_ERR ((RETSIGTYPE (*)())-1) #define SIG_ERR ((RETSIGTYPE (*)(int))-1)
#endif #endif
/* /*
@@ -235,7 +235,7 @@
#if IRIX != 4 /* fix for compiler bug */ #if IRIX != 4 /* fix for compiler bug */
#ifdef RETSIGTYPE #ifdef RETSIGTYPE
typedef RETSIGTYPE (*SigAction)(/* int??? */); typedef RETSIGTYPE (*SigAction)(int);
SigAction signal(int iSig, SigAction pAction); /* BSD compatible */ SigAction signal(int iSig, SigAction pAction); /* BSD compatible */
#endif #endif
#endif #endif

View File

@@ -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). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -49,8 +49,6 @@ RCSID("$Id$");
* Do we need any extra hacks for SIGCLD and/or SIGCHLD? * Do we need any extra hacks for SIGCLD and/or SIGCHLD?
*/ */
typedef RETSIGTYPE (*SigAction)(/* int??? */);
SigAction SigAction
signal(int iSig, SigAction pAction) signal(int iSig, SigAction pAction)
{ {