summaryrefslogtreecommitdiff
path: root/ssh-pkcs11-helper.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2020-03-06 18:26:21 +0000
committerDamien Miller <djm@mindrot.org>2020-03-13 13:18:31 +1100
commite26a31757c5df2f58687cb9a4853d1418f39728e (patch)
tree9d98b298d307f67f8c03fb2a7decc92fa25b1ef4 /ssh-pkcs11-helper.c
parent1b378c0d982d6ab522eda634b0e88cf1fca5e352 (diff)
upstream: remove unused variables in ssh-pkcs11-helper; ok djm
OpenBSD-Commit-ID: 13e572846d0d1b28f1251ddd2165e9cf18135ae1
Diffstat (limited to 'ssh-pkcs11-helper.c')
-rw-r--r--ssh-pkcs11-helper.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c
index 17220d624..d73e83576 100644
--- a/ssh-pkcs11-helper.c
+++ b/ssh-pkcs11-helper.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-pkcs11-helper.c,v 1.22 2020/01/25 00:03:36 djm Exp $ */ 1/* $OpenBSD: ssh-pkcs11-helper.c,v 1.23 2020/03/06 18:26:21 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2010 Markus Friedl. All rights reserved. 3 * Copyright (c) 2010 Markus Friedl. All rights reserved.
4 * 4 *
@@ -324,7 +324,7 @@ cleanup_exit(int i)
324int 324int
325main(int argc, char **argv) 325main(int argc, char **argv)
326{ 326{
327 int r, ch, in, out, max, log_stderr = 0; 327 int r, ch, in, out, log_stderr = 0;
328 ssize_t len; 328 ssize_t len;
329 SyslogFacility log_facility = SYSLOG_FACILITY_AUTH; 329 SyslogFacility log_facility = SYSLOG_FACILITY_AUTH;
330 LogLevel log_level = SYSLOG_LEVEL_ERROR; 330 LogLevel log_level = SYSLOG_LEVEL_ERROR;
@@ -360,12 +360,6 @@ main(int argc, char **argv)
360 in = STDIN_FILENO; 360 in = STDIN_FILENO;
361 out = STDOUT_FILENO; 361 out = STDOUT_FILENO;
362 362
363 max = 0;
364 if (in > max)
365 max = in;
366 if (out > max)
367 max = out;
368
369 if ((iqueue = sshbuf_new()) == NULL) 363 if ((iqueue = sshbuf_new()) == NULL)
370 fatal("%s: sshbuf_new failed", __func__); 364 fatal("%s: sshbuf_new failed", __func__);
371 if ((oqueue = sshbuf_new()) == NULL) 365 if ((oqueue = sshbuf_new()) == NULL)