diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-07 17:23:43 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-07 17:23:43 +0000 |
commit | ab0cedc58766dc83562ab6b00dee1fd1b0337dae (patch) | |
tree | 839c54c7cb1cf40888d7edfad5e05dbed83a9c35 | |
parent | d47cf4d53cbddda9df6863d7000542f89b07b698 (diff) |
- stevesk@cvs.openbsd.org 2001/04/06 22:12:47
[hostfile.c]
unused; typo in comment
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | hostfile.c | 9 |
2 files changed, 10 insertions, 7 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20010408 | ||
2 | - OpenBSD CVS Sync | ||
3 | - stevesk@cvs.openbsd.org 2001/04/06 22:12:47 | ||
4 | [hostfile.c] | ||
5 | unused; typo in comment | ||
6 | |||
1 | 20010407 | 7 | 20010407 |
2 | - (bal) CVS ID Resync of version.h | 8 | - (bal) CVS ID Resync of version.h |
3 | - OpenBSD CVS Sync | 9 | - OpenBSD CVS Sync |
@@ -4923,4 +4929,4 @@ | |||
4923 | - Wrote replacements for strlcpy and mkdtemp | 4929 | - Wrote replacements for strlcpy and mkdtemp |
4924 | - Released 1.0pre1 | 4930 | - Released 1.0pre1 |
4925 | 4931 | ||
4926 | $Id: ChangeLog,v 1.1077 2001/04/07 01:14:38 mouring Exp $ | 4932 | $Id: ChangeLog,v 1.1078 2001/04/07 17:23:43 mouring Exp $ |
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++; |