summaryrefslogtreecommitdiff
path: root/src/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty.c')
-rw-r--r--src/pty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pty.c b/src/pty.c
index 2c90f5e..2b7d955 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -192,7 +192,7 @@ OpenPTY(char **ttyn)
{
int f;
char *name, *_getpty();
- sigret_t (*sigcld)SIGPROTOARG;
+ sigret_t (*sigcld)(int);
/*
* SIGCHLD set to SIG_DFL for _getpty() because it may fork() and
@@ -248,7 +248,7 @@ OpenPTY(char **ttyn)
#if defined(HAVE_GETPT) && defined(linux)
int getpt (void);
#endif
- sigret_t (*sigcld)SIGPROTOARG;
+ sigret_t (*sigcld)(int);
strncpy(PtyName, "/dev/ptmx", 32);
#if defined(HAVE_GETPT) && (defined(linux) || defined(__GLIBC__))