From 5f088f83483470ce86c04249e2ba41fc8d77dd41 Mon Sep 17 00:00:00 2001 From: dtucker Date: Tue, 26 Jan 2021 11:25:01 +0000 Subject: [PATCH] Remove unused variables leftover from refactoring. ok djm@ --- usr.bin/ssh/ssh-agent.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index da2f5a06b37..8c35a7ceb4e 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.271 2021/01/26 00:54:49 djm Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.272 2021/01/26 11:25:01 dtucker Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -413,7 +413,7 @@ static void process_sign_request2(SocketEntry *e) { u_char *signature = NULL; - size_t i, slen = 0; + size_t slen = 0; u_int compat = 0, flags; int r, ok = -1; char *fp = NULL; @@ -567,8 +567,7 @@ parse_key_constraints(struct sshbuf *m, struct sshkey *k, time_t *deathp, u_char ctype; int r; u_int seconds, maxsign = 0; - char *ext_name = NULL, *sk_provider = NULL; - size_t pos; + char *ext_name = NULL; struct sshbuf *b = NULL; while (sshbuf_len(m)) { @@ -658,7 +657,7 @@ process_add_identity(SocketEntry *e) { Identity *id; int success = 0, confirm = 0; - char *fp, *comment = NULL, *ext_name = NULL, *sk_provider = NULL; + char *fp, *comment = NULL, *sk_provider = NULL; char canonical_provider[PATH_MAX]; time_t death = 0; u_int seconds = 0; @@ -824,7 +823,6 @@ process_add_smartcard_key(SocketEntry *e) int r, i, count = 0, success = 0, confirm = 0; u_int seconds = 0; time_t death = 0; - u_char type; struct sshkey **keys = NULL, *k; Identity *id; -- 2.20.1