diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-26 07:53:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-26 07:53:28 +0000 |
commit | ad3dc5b9f3cf3d2227d56ed40aeb8b203fc362c8 (patch) | |
tree | f6fdc716aeffc9c5c3b1031eac8ea1b41d78b696 /libexec/telnetd | |
parent | e985c54ca22a1b161106287b8b7494e393cc38eb (diff) |
simple protos
Diffstat (limited to 'libexec/telnetd')
-rw-r--r-- | libexec/telnetd/encrypt.c | 4 | ||||
-rw-r--r-- | libexec/telnetd/state.c | 6 | ||||
-rw-r--r-- | libexec/telnetd/termstat.c | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/libexec/telnetd/encrypt.c b/libexec/telnetd/encrypt.c index f587c3a2c1f..08a56f360f9 100644 --- a/libexec/telnetd/encrypt.c +++ b/libexec/telnetd/encrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: encrypt.c,v 1.2 2003/06/02 19:38:25 millert Exp $ */ +/* $OpenBSD: encrypt.c,v 1.3 2003/06/26 07:53:27 deraadt Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -174,7 +174,7 @@ static struct key_info { int keylen; int dir; int *modep; - Encryptions *(*getcrypt)(); + Encryptions *(*getcrypt)(int); } ki[2] = { { { 0 }, 0, DIR_ENCRYPT, &encrypt_mode, findencryption }, { { 0 }, 0, DIR_DECRYPT, &decrypt_mode, finddecryption }, diff --git a/libexec/telnetd/state.c b/libexec/telnetd/state.c index ec38a51060f..2daab2c4600 100644 --- a/libexec/telnetd/state.c +++ b/libexec/telnetd/state.c @@ -425,14 +425,14 @@ send_do(int option, int init) extern void auth_request(void); #endif #ifdef ENCRYPTION -extern void encrypt_send_support(); +extern void encrypt_send_support(void); #endif void willoption(int option) { int changeok = 0; - void (*func)() = 0; + void (*func)(void) = 0; /* * process input from peer. @@ -908,6 +908,8 @@ char *badenv_table[] = { NULL, }; +static int envvarok(char *); + /* envvarok(char*) */ /* check that variable is safe to pass to login or shell */ static int diff --git a/libexec/telnetd/termstat.c b/libexec/telnetd/termstat.c index 1fc796435c2..e2e3edaff38 100644 --- a/libexec/telnetd/termstat.c +++ b/libexec/telnetd/termstat.c @@ -77,7 +77,7 @@ flowstat() void clientstat(int code, int parm1, int parm2) { - void netflush(); + void netflush(void); /* * Get a copy of terminal characteristics. |