Fix a couple of mysig_t leftovers.

This commit is contained in:
Darren Tucker 2020-01-23 21:06:45 +11:00
parent 84226b447d
commit 945bf52c3c
3 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -65,6 +65,8 @@
#include <string.h>
#include <unistd.h>
#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);