summaryrefslogtreecommitdiff
path: root/hostfile.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2019-07-07 01:05:00 +0000
committerDamien Miller <djm@mindrot.org>2019-07-08 11:45:51 +1000
commit696fb4298e80f2ebcd188986a91b49af3b7ca14c (patch)
treeb07d04b5035781544ddb0e9e9fee1476bf564850 /hostfile.c
parent156e9e85e92b46ca90226605d9eff49e8ec31b22 (diff)
upstream: Remove some set but never used variables. ok daraadt@
OpenBSD-Commit-ID: 824baf9c59afc66a4637017e397b9b74a41684e7
Diffstat (limited to 'hostfile.c')
-rw-r--r--hostfile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hostfile.c b/hostfile.c
index 6a2a3d0b0..389aae1fc 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: hostfile.c,v 1.75 2019/06/28 01:23:50 deraadt Exp $ */ 1/* $OpenBSD: hostfile.c,v 1.76 2019/07/07 01:05:00 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -163,13 +163,12 @@ int
163hostfile_read_key(char **cpp, u_int *bitsp, struct sshkey *ret) 163hostfile_read_key(char **cpp, u_int *bitsp, struct sshkey *ret)
164{ 164{
165 char *cp; 165 char *cp;
166 int r;
167 166
168 /* Skip leading whitespace. */ 167 /* Skip leading whitespace. */
169 for (cp = *cpp; *cp == ' ' || *cp == '\t'; cp++) 168 for (cp = *cpp; *cp == ' ' || *cp == '\t'; cp++)
170 ; 169 ;
171 170
172 if ((r = sshkey_read(ret, &cp)) != 0) 171 if (sshkey_read(ret, &cp) != 0)
173 return 0; 172 return 0;
174 173
175 /* Skip trailing whitespace. */ 174 /* Skip trailing whitespace. */