diff options
Diffstat (limited to 'hostfile.c')
-rw-r--r-- | hostfile.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/hostfile.c b/hostfile.c index b285ee83c..77aa8a899 100644 --- a/hostfile.c +++ b/hostfile.c | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "includes.h" | 38 | #include "includes.h" |
39 | RCSID("$OpenBSD: hostfile.c,v 1.24 2001/01/21 19:05:49 markus Exp $"); | 39 | RCSID("$OpenBSD: hostfile.c,v 1.25 2001/04/06 22:12:47 stevesk Exp $"); |
40 | 40 | ||
41 | #include "packet.h" | 41 | #include "packet.h" |
42 | #include "match.h" | 42 | #include "match.h" |
@@ -111,7 +111,7 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key, | |||
111 | FILE *f; | 111 | FILE *f; |
112 | char line[8192]; | 112 | char line[8192]; |
113 | int linenum = 0; | 113 | int linenum = 0; |
114 | u_int kbits, hostlen; | 114 | u_int kbits; |
115 | char *cp, *cp2; | 115 | char *cp, *cp2; |
116 | HostStatus end_return; | 116 | HostStatus end_return; |
117 | 117 | ||
@@ -122,9 +122,6 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key, | |||
122 | if (!f) | 122 | if (!f) |
123 | return HOST_NEW; | 123 | return HOST_NEW; |
124 | 124 | ||
125 | /* Cache the length of the host name. */ | ||
126 | hostlen = strlen(host); | ||
127 | |||
128 | /* | 125 | /* |
129 | * Return value when the loop terminates. This is set to | 126 | * Return value when the loop terminates. This is set to |
130 | * HOST_CHANGED if we have seen a different key for the host and have | 127 | * HOST_CHANGED if we have seen a different key for the host and have |
@@ -132,7 +129,7 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key, | |||
132 | */ | 129 | */ |
133 | end_return = HOST_NEW; | 130 | end_return = HOST_NEW; |
134 | 131 | ||
135 | /* Go trough the file. */ | 132 | /* Go through the file. */ |
136 | while (fgets(line, sizeof(line), f)) { | 133 | while (fgets(line, sizeof(line), f)) { |
137 | cp = line; | 134 | cp = line; |
138 | linenum++; | 135 | linenum++; |