summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-07-04 04:02:36 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-07-04 04:02:36 +0000
commit16ae3d0dba5f81e5602798b915105284033dea75 (patch)
treece0c2bf0d7e961b1015d43d1a07269d81e7a9ce9 /misc.h
parent90279d80f57c79ac6566051172a94a2cca9674b1 (diff)
- itojun@cvs.openbsd.org 2001/06/26 06:32:58
[atomicio.h authfd.h authfile.h auth.h auth-options.h bufaux.h buffer.h canohost.h channels.h cipher.h clientloop.h compat.h compress.h crc32.h deattack.h dh.h dispatch.h groupaccess.h hostfile.h kex.h key.h log.h mac.h match.h misc.h mpaux.h packet.h radix.h readconf.h readpass.h rsa.h] prototype pedant. not very creative... - () -> (void) - no variable names
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/misc.h b/misc.h
index 086f98e0f..829208d29 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.h,v 1.8 2001/05/19 19:43:57 stevesk Exp $ */ 1/* $OpenBSD: misc.h,v 1.9 2001/06/26 06:32:56 itojun Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -12,27 +12,27 @@
12 * called by a name other than "ssh" or "Secure Shell". 12 * called by a name other than "ssh" or "Secure Shell".
13 */ 13 */
14/* remove newline at end of string */ 14/* remove newline at end of string */
15char *chop(char *s); 15char *chop(char *);
16 16
17/* return next token in configuration line */ 17/* return next token in configuration line */
18char *strdelim(char **s); 18char *strdelim(char **);
19 19
20/* set/unset filedescriptor to non-blocking */ 20/* set/unset filedescriptor to non-blocking */
21void set_nonblock(int fd); 21void set_nonblock(int);
22void unset_nonblock(int fd); 22void unset_nonblock(int);
23 23
24struct passwd * pwcopy(struct passwd *pw); 24struct passwd * pwcopy(struct passwd *);
25 25
26/* 26/*
27 * Convert ASCII string to TCP/IP port number. 27 * Convert ASCII string to TCP/IP port number.
28 * Port must be >0 and <=65535. 28 * Port must be >0 and <=65535.
29 * Return 0 if invalid. 29 * Return 0 if invalid.
30 */ 30 */
31int a2port(const char *s); 31int a2port(const char *);
32 32
33/* code from scp.c/rcp.c */ 33/* code from scp.c/rcp.c */
34char *cleanhostname(char *host); 34char *cleanhostname(char *);
35char *colon(char *cp); 35char *colon(char *);
36 36
37/* 37/*
38 * Convert a time string into seconds; format is 38 * Convert a time string into seconds; format is
@@ -56,7 +56,7 @@ char *colon(char *cp);
56 * Return -1 if time string is invalid. 56 * Return -1 if time string is invalid.
57 */ 57 */
58 58
59long convtime(const char *s); 59long convtime(const char *);
60 60
61/* function to assist building execv() arguments */ 61/* function to assist building execv() arguments */
62typedef struct arglist arglist; 62typedef struct arglist arglist;
@@ -66,7 +66,7 @@ struct arglist {
66 int nalloc; 66 int nalloc;
67}; 67};
68 68
69void addargs(arglist *args, char *fmt, ...) __attribute__((format(printf, 2, 3))); 69void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3)));
70 70
71/* wrapper for signal interface */ 71/* wrapper for signal interface */
72typedef void (*mysig_t)(int); 72typedef void (*mysig_t)(int);