]> andersk Git - openssh.git/commitdiff
- stevesk@cvs.openbsd.org 2001/04/06 22:12:47
authormouring <mouring>
Sat, 7 Apr 2001 17:23:43 +0000 (17:23 +0000)
committermouring <mouring>
Sat, 7 Apr 2001 17:23:43 +0000 (17:23 +0000)
     [hostfile.c]
     unused; typo in comment

ChangeLog
hostfile.c

index e2e2a7f8e8ab63d101ecb0df1ab9494ba40303b1..da7d42df5877602e9c88379dabd57a735ef75bd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+20010408
+ - OpenBSD CVS Sync
+   - stevesk@cvs.openbsd.org 2001/04/06 22:12:47
+     [hostfile.c]
+     unused; typo in comment
+
 20010407
  - (bal) CVS ID Resync of version.h
  - OpenBSD CVS Sync
index b285ee83cf545aa43f04efc746081e9261ec0bff..77aa8a899a0949299d50af6fb29c59469a66c15d 100644 (file)
@@ -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++;
This page took 1.836278 seconds and 5 git commands to generate.