From 945bf52c3c815d95b1e842ebf6c910c3524bd5bb Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 23 Jan 2020 21:06:45 +1100 Subject: [PATCH] Fix a couple of mysig_t leftovers. --- auth-pam.c | 3 ++- entropy.c | 2 +- openbsd-compat/bsd-openpty.c | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/auth-pam.c b/auth-pam.c index 0cd2b0019..5a3ba09b4 100644 --- a/auth-pam.c +++ b/auth-pam.c @@ -100,6 +100,7 @@ extern char *__progname; #include "servconf.h" #include "ssh2.h" #include "auth-options.h" +#include "misc.h" #ifdef GSSAPI #include "ssh-gss.h" #endif @@ -151,7 +152,7 @@ static struct pam_ctxt *cleanup_ctxt; */ static int sshpam_thread_status = -1; -static mysig_t sshpam_oldsig; +static sshsig_t sshpam_oldsig; static void sshpam_sigchld_handler(int sig) diff --git a/entropy.c b/entropy.c index 2eebadf4a..19ddeeafa 100644 --- a/entropy.c +++ b/entropy.c @@ -84,7 +84,7 @@ get_random_bytes_prngd(unsigned char *buf, int len, struct sockaddr_storage addr; struct sockaddr_in *addr_in = (struct sockaddr_in *)&addr; struct sockaddr_un *addr_un = (struct sockaddr_un *)&addr; - mysig_t old_sigpipe; + sshsig_t old_sigpipe; /* Sanity checks */ if (socket_path == NULL && tcp_port == 0) diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c index b6b5ab49b..1ab41f42b 100644 --- a/openbsd-compat/bsd-openpty.c +++ b/openbsd-compat/bsd-openpty.c @@ -65,6 +65,8 @@ #include #include +#include "misc.h" + #ifndef O_NOCTTY #define O_NOCTTY 0 #endif @@ -97,7 +99,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, */ int ptm; char *pts; - mysig_t old_signal; + sshsig_t old_signal; if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) return (-1);