diff options
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r-- | ssh-keyscan.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index ab46e9edb..ab7f33d04 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c | |||
@@ -8,7 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "includes.h" | 10 | #include "includes.h" |
11 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.19 2001/03/03 21:19:41 millert Exp $"); | 11 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.20 2001/03/05 15:37:27 deraadt Exp $"); |
12 | 12 | ||
13 | #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) | 13 | #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) |
14 | #include <sys/queue.h> | 14 | #include <sys/queue.h> |
@@ -91,7 +91,7 @@ typedef struct { | |||
91 | void (*errfun) (const char *,...); | 91 | void (*errfun) (const char *,...); |
92 | } Linebuf; | 92 | } Linebuf; |
93 | 93 | ||
94 | static __inline__ Linebuf * | 94 | Linebuf * |
95 | Linebuf_alloc(const char *filename, void (*errfun) (const char *,...)) | 95 | Linebuf_alloc(const char *filename, void (*errfun) (const char *,...)) |
96 | { | 96 | { |
97 | Linebuf *lb; | 97 | Linebuf *lb; |
@@ -125,7 +125,7 @@ Linebuf_alloc(const char *filename, void (*errfun) (const char *,...)) | |||
125 | return (lb); | 125 | return (lb); |
126 | } | 126 | } |
127 | 127 | ||
128 | static __inline__ void | 128 | void |
129 | Linebuf_free(Linebuf * lb) | 129 | Linebuf_free(Linebuf * lb) |
130 | { | 130 | { |
131 | fclose(lb->stream); | 131 | fclose(lb->stream); |
@@ -133,7 +133,7 @@ Linebuf_free(Linebuf * lb) | |||
133 | xfree(lb); | 133 | xfree(lb); |
134 | } | 134 | } |
135 | 135 | ||
136 | static __inline__ void | 136 | void |
137 | Linebuf_restart(Linebuf * lb) | 137 | Linebuf_restart(Linebuf * lb) |
138 | { | 138 | { |
139 | clearerr(lb->stream); | 139 | clearerr(lb->stream); |
@@ -141,13 +141,13 @@ Linebuf_restart(Linebuf * lb) | |||
141 | lb->lineno = 0; | 141 | lb->lineno = 0; |
142 | } | 142 | } |
143 | 143 | ||
144 | static __inline__ int | 144 | int |
145 | Linebuf_lineno(Linebuf * lb) | 145 | Linebuf_lineno(Linebuf * lb) |
146 | { | 146 | { |
147 | return (lb->lineno); | 147 | return (lb->lineno); |
148 | } | 148 | } |
149 | 149 | ||
150 | static __inline__ char * | 150 | char * |
151 | Linebuf_getline(Linebuf * lb) | 151 | Linebuf_getline(Linebuf * lb) |
152 | { | 152 | { |
153 | int n = 0; | 153 | int n = 0; |
@@ -184,7 +184,7 @@ Linebuf_getline(Linebuf * lb) | |||
184 | } | 184 | } |
185 | } | 185 | } |
186 | 186 | ||
187 | static int | 187 | int |
188 | fdlim_get(int hard) | 188 | fdlim_get(int hard) |
189 | { | 189 | { |
190 | #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE) | 190 | #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE) |
@@ -203,7 +203,7 @@ fdlim_get(int hard) | |||
203 | #endif | 203 | #endif |
204 | } | 204 | } |
205 | 205 | ||
206 | static int | 206 | int |
207 | fdlim_set(int lim) | 207 | fdlim_set(int lim) |
208 | { | 208 | { |
209 | #if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) | 209 | #if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) |
@@ -228,7 +228,7 @@ fdlim_set(int lim) | |||
228 | * separators. This is the same as the 4.4BSD strsep, but different from the | 228 | * separators. This is the same as the 4.4BSD strsep, but different from the |
229 | * one in the GNU libc. | 229 | * one in the GNU libc. |
230 | */ | 230 | */ |
231 | static __inline__ char * | 231 | char * |
232 | xstrsep(char **str, const char *delim) | 232 | xstrsep(char **str, const char *delim) |
233 | { | 233 | { |
234 | char *s, *e; | 234 | char *s, *e; |
@@ -574,7 +574,7 @@ nexthost(int argc, char **argv) | |||
574 | } | 574 | } |
575 | } | 575 | } |
576 | 576 | ||
577 | static void | 577 | void |
578 | usage(void) | 578 | usage(void) |
579 | { | 579 | { |
580 | fatal("usage: %s [-t timeout] { [--] host | -f file } ...", __progname); | 580 | fatal("usage: %s [-t timeout] { [--] host | -f file } ...", __progname); |