diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2017-07-24 04:34:29 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2017-07-24 04:34:29 +0000 |
commit | 655e70376637e246a4a70b3398b237708df4cc21 (patch) | |
tree | 9071b2e72e3b1e2d113e89315eb4d90397ebb770 /usr.bin/ssh | |
parent | 00083e9adb9c9b239a302ddd8c16f0c24837997a (diff) |
g/c unused variable; make a little more portable
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/ssh-agent.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index a4ae35a2eb4..9693722d551 100644 --- a/usr.bin/ssh/ssh-agent.c +++ b/usr.bin/ssh/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.223 2017/07/19 01:15:02 djm Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.224 2017/07/24 04:34:28 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -934,7 +934,7 @@ prepare_poll(struct pollfd **pfdp, size_t *npfdp, int *timeoutp) deadline = (deadline == 0) ? parent_alive_interval : MINIMUM(deadline, parent_alive_interval); if (deadline == 0) { - *timeoutp = INFTIM; + *timeoutp = -1; /* INFTIM */ } else { if (deadline > INT_MAX / 1000) *timeoutp = INT_MAX / 1000; @@ -1003,7 +1003,6 @@ main(int ac, char **av) { int c_flag = 0, d_flag = 0, D_flag = 0, k_flag = 0, s_flag = 0; int sock, fd, ch, result, saved_errno; - u_int nalloc; char *shell, *format, *pidstr, *agentsocket = NULL; struct rlimit rlim; extern int optind; @@ -1012,7 +1011,7 @@ main(int ac, char **av) char pidstrbuf[1 + 3 * sizeof pid]; size_t len; mode_t prev_mask; - int timeout = INFTIM; + int timeout = -1; /* INFTIM */ struct pollfd *pfd = NULL; size_t npfd = 0; @@ -1228,7 +1227,6 @@ skip: signal(SIGINT, (d_flag | D_flag) ? cleanup_handler : SIG_IGN); signal(SIGHUP, cleanup_handler); signal(SIGTERM, cleanup_handler); - nalloc = 0; if (pledge("stdio rpath cpath unix id proc exec", NULL) == -1) fatal("%s: pledge: %s", __progname, strerror(errno)); |