summaryrefslogtreecommitdiff
path: root/hostfile.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-07 17:23:43 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-07 17:23:43 +0000
commitab0cedc58766dc83562ab6b00dee1fd1b0337dae (patch)
tree839c54c7cb1cf40888d7edfad5e05dbed83a9c35 /hostfile.c
parentd47cf4d53cbddda9df6863d7000542f89b07b698 (diff)
- stevesk@cvs.openbsd.org 2001/04/06 22:12:47
[hostfile.c] unused; typo in comment
Diffstat (limited to 'hostfile.c')
-rw-r--r--hostfile.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/hostfile.c b/hostfile.c
index b285ee83..77aa8a89 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -36,7 +36,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: hostfile.c,v 1.24 2001/01/21 19:05:49 markus Exp $");
+RCSID("$OpenBSD: hostfile.c,v 1.25 2001/04/06 22:12:47 stevesk Exp $");
#include "packet.h"
#include "match.h"
@@ -111,7 +111,7 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key,
FILE *f;
char line[8192];
int linenum = 0;
- u_int kbits, hostlen;
+ u_int kbits;
char *cp, *cp2;
HostStatus end_return;
@@ -122,9 +122,6 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key,
if (!f)
return HOST_NEW;
- /* Cache the length of the host name. */
- hostlen = strlen(host);
-
/*
* Return value when the loop terminates. This is set to
* 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,
*/
end_return = HOST_NEW;
- /* Go trough the file. */
+ /* Go through the file. */
while (fgets(line, sizeof(line), f)) {
cp = line;
linenum++;