diff options
author | markm <markm@FreeBSD.org> | 2001-11-30 22:28:07 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-11-30 22:28:07 +0000 |
commit | 14227a41e2b61efeed2657b0c3c771752ca8011f (patch) | |
tree | 751a532a1b619f10cb6fc297ada4141a2d178a68 /contrib/telnet/telnet | |
parent | 57acab063b3ef9760ddafee33cca79b6f179421a (diff) | |
download | FreeBSD-src-14227a41e2b61efeed2657b0c3c771752ca8011f.zip FreeBSD-src-14227a41e2b61efeed2657b0c3c771752ca8011f.tar.gz |
Damn. The previous mega-commit was incomplete WRT ANSIfication. This
fixes that.
Diffstat (limited to 'contrib/telnet/telnet')
-rw-r--r-- | contrib/telnet/telnet/commands.c | 68 | ||||
-rw-r--r-- | contrib/telnet/telnet/externs.h | 184 | ||||
-rw-r--r-- | contrib/telnet/telnet/ring.h | 28 |
3 files changed, 140 insertions, 140 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c index 8b30e36..dd14487 100644 --- a/contrib/telnet/telnet/commands.c +++ b/contrib/telnet/telnet/commands.c @@ -86,13 +86,13 @@ static const char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95"; typedef int (*intrtn_t)(int, char **); #ifdef AUTHENTICATION -extern int auth_togdebug P((int)); +extern int auth_togdebug(int); #endif #ifdef ENCRYPTION -extern int EncryptAutoEnc P((int)); -extern int EncryptAutoDec P((int)); -extern int EncryptDebug P((int)); -extern int EncryptVerbose P((int)); +extern int EncryptAutoEnc(int); +extern int EncryptAutoDec(int); +extern int EncryptDebug(int); +extern int EncryptVerbose(int); #endif /* ENCRYPTION */ #if defined(IPPROTO_IP) && defined(IP_TOS) int tos = -1; @@ -289,12 +289,12 @@ struct sendlist { static int - send_esc P((void)), - send_help P((void)), - send_docmd P((char *)), - send_dontcmd P((char *)), - send_willcmd P((char *)), - send_wontcmd P((char *)); + send_esc(void), + send_help(void), + send_docmd(char *), + send_dontcmd(char *), + send_willcmd(char *), + send_wontcmd(char *); static struct sendlist Sendlist[] = { { "ao", "Send Telnet Abort output", 1, 0, NULL, 2, AO }, @@ -1514,18 +1514,18 @@ struct envlist { }; extern struct env_lst * - env_define P((const unsigned char *, unsigned char *)); + env_define(const unsigned char *, unsigned char *); extern void - env_undefine P((unsigned char *)), - env_export P((const unsigned char *)), - env_unexport P((const unsigned char *)), - env_send P((unsigned char *)), + env_undefine(unsigned char *), + env_export(const unsigned char *), + env_unexport(const unsigned char *), + env_send(unsigned char *), #if defined(OLD_ENVIRON) && defined(ENV_HACK) - env_varval P((unsigned char *)), + env_varval(unsigned char *), #endif - env_list P((void)); + env_list(void); static void - env_help P((void)); + env_help(void); struct envlist EnvList[] = { { "define", "Define an environment variable", @@ -1847,11 +1847,11 @@ struct authlist { }; extern int - auth_enable P((char *)), - auth_disable P((char *)), - auth_status P((void)); + auth_enable(char *), + auth_disable(char *), + auth_status(void); static int - auth_help P((void)); + auth_help(void); struct authlist AuthList[] = { { "status", "Display current status of authentication information", @@ -1930,18 +1930,18 @@ struct encryptlist { }; extern int - EncryptEnable P((char *, char *)), - EncryptDisable P((char *, char *)), - EncryptType P((char *, char *)), - EncryptStart P((char *)), - EncryptStartInput P((void)), - EncryptStartOutput P((void)), - EncryptStop P((char *)), - EncryptStopInput P((void)), - EncryptStopOutput P((void)), - EncryptStatus P((void)); + EncryptEnable(char *, char *), + EncryptDisable(char *, char *), + EncryptType(char *, char *), + EncryptStart(char *), + EncryptStartInput(void), + EncryptStartOutput(void), + EncryptStop(char *), + EncryptStopInput(void), + EncryptStopOutput(void), + EncryptStatus(void); static int - EncryptHelp P((void)); + EncryptHelp(void); struct encryptlist EncryptList[] = { { "enable", "Enable encryption. ('encrypt enable ?' for more)", diff --git a/contrib/telnet/telnet/externs.h b/contrib/telnet/telnet/externs.h index c8ea02c..5ecf114 100644 --- a/contrib/telnet/telnet/externs.h +++ b/contrib/telnet/telnet/externs.h @@ -148,8 +148,8 @@ extern char options[], /* All the little options */ *hostname; /* Who are we connected to? */ #ifdef ENCRYPTION -extern void (*encrypt_output) P((unsigned char *, int)); -extern int (*decrypt_input) P((int)); +extern void (*encrypt_output)(unsigned char *, int); +extern int (*decrypt_input)(int); #endif /* ENCRYPTION */ /* @@ -222,7 +222,7 @@ extern int (*decrypt_input) P((int)); #ifdef SIGINFO extern SIG_FUNC_RET - ayt_status P((void)); + ayt_status(void); #endif extern FILE @@ -230,113 +230,113 @@ extern FILE extern unsigned char NetTraceFile[]; /* Name of file where debugging output goes */ extern void - SetNetTrace P((char *)); /* Function to change where debugging goes */ + SetNetTrace(char *); /* Function to change where debugging goes */ extern jmp_buf peerdied, toplevel; /* For error conditions. */ extern void - command P((int, const char *, int)), - Dump P((char, unsigned char *, int)), - env_init P((void)), - Exit P((int)), - ExitString P((const char *, int)), - init_network P((void)), - init_sys P((void)), - init_telnet P((void)), - init_terminal P((void)), - intp P((void)), - optionstatus P((void)), - printoption P((const char *, int, int)), - printsub P((char, unsigned char *, int)), - quit P((void)), - sendabort P((void)), - sendbrk P((void)), - sendeof P((void)), - sendsusp P((void)), - sendnaws P((void)), - sendayt P((void)), - setconnmode P((int)), - setcommandmode P((void)), - set_escape_char P((char *s)), - setneturg P((void)), - sys_telnet_init P((void)), - telnet P((char *)), - tel_enter_binary P((int)), - tel_leave_binary P((int)), - TerminalFlushOutput P((void)), - TerminalNewMode P((int)), - TerminalRestoreState P((void)), - TerminalSaveState P((void)), - TerminalDefaultChars P((void)), - TerminalSpeeds P((long *, long *)), - tninit P((void)), - upcase P((char *)), - willoption P((int)), - wontoption P((int)); + command(int, const char *, int), + Dump(char, unsigned char *, int), + env_init(void), + Exit(int), + ExitString(const char *, int), + init_network(void), + init_sys(void), + init_telnet(void), + init_terminal(void), + intp(void), + optionstatus(void), + printoption(const char *, int, int), + printsub(char, unsigned char *, int), + quit(void), + sendabort(void), + sendbrk(void), + sendeof(void), + sendsusp(void), + sendnaws(void), + sendayt(void), + setconnmode(int), + setcommandmode(void), + set_escape_char(char *s), + setneturg(void), + sys_telnet_init(void), + telnet(char *), + tel_enter_binary(int), + tel_leave_binary(int), + TerminalFlushOutput(void), + TerminalNewMode(int), + TerminalRestoreState(void), + TerminalSaveState(void), + TerminalDefaultChars(void), + TerminalSpeeds(long *, long *), + tninit(void), + upcase(char *), + willoption(int), + wontoption(int); extern void - send_do P((int, int)), - send_dont P((int, int)), - send_will P((int, int)), - send_wont P((int, int)); + send_do(int, int), + send_dont(int, int), + send_will(int, int), + send_wont(int, int); extern void - lm_will P((unsigned char *, int)), - lm_wont P((unsigned char *, int)), - lm_do P((unsigned char *, int)), - lm_dont P((unsigned char *, int)), - lm_mode P((unsigned char *, int, int)); + lm_will(unsigned char *, int), + lm_wont(unsigned char *, int), + lm_do(unsigned char *, int), + lm_dont(unsigned char *, int), + lm_mode(unsigned char *, int, int); extern void - slc_init P((void)), - slcstate P((void)), - slc_mode_export P((void)), - slc_mode_import P((int)), - slc_import P((int)), - slc_export P((void)), - slc P((unsigned char *, int)), - slc_check P((void)), - slc_start_reply P((void)), - slc_add_reply P((unsigned char, unsigned char, cc_t)), - slc_end_reply P((void)); + slc_init(void), + slcstate(void), + slc_mode_export(void), + slc_mode_import(int), + slc_import(int), + slc_export(void), + slc(unsigned char *, int), + slc_check(void), + slc_start_reply(void), + slc_add_reply(unsigned char, unsigned char, cc_t), + slc_end_reply(void); extern int - getconnmode P((void)), - opt_welldefined P((const char *)), - NetClose P((int)), - netflush P((void)), - process_rings P((int, int, int, int, int, int)), - rlogin_susp P((void)), - SetSockOpt P((int, int, int, int)), - slc_update P((void)), - stilloob P((void)), - telrcv P((void)), - TerminalRead P((char *, int)), - TerminalWrite P((char *, int)), - TerminalAutoFlush P((void)), - TerminalWindowSize P((long *, long *)), - TerminalSpecialChars P((int)), - tn P((int, char **)), - ttyflush P((int)); + getconnmode(void), + opt_welldefined(const char *), + NetClose(int), + netflush(void), + process_rings(int, int, int, int, int, int), + rlogin_susp(void), + SetSockOpt(int, int, int, int), + slc_update(void), + stilloob(void), + telrcv(void), + TerminalRead(char *, int), + TerminalWrite(char *, int), + TerminalAutoFlush(void), + TerminalWindowSize(long *, long *), + TerminalSpecialChars(int), + tn(int, char **), + ttyflush(int); extern void - env_opt P((unsigned char *, int)), - env_opt_start P((void)), - env_opt_start_info P((void)), - env_opt_add P((unsigned char *)), - env_opt_end P((int)); + env_opt(unsigned char *, int), + env_opt_start(void), + env_opt_start_info(void), + env_opt_add(unsigned char *), + env_opt_end(int); extern unsigned char - *env_default P((int, int)), - *env_getvalue P((const unsigned char *)); + *env_default(int, int), + *env_getvalue(const unsigned char *); extern int - get_status P((char *)), - dosynch P((char *)); + get_status(char *), + dosynch(char *); extern cc_t - *tcval P((int)); + *tcval(int); #ifndef USE_TERMIO @@ -486,6 +486,6 @@ extern Ring ttyiring; extern void - xmitAO P((void)), - xmitEC P((void)), - xmitEL P((void)); + xmitAO(void), + xmitEC(void), + xmitEL(void); diff --git a/contrib/telnet/telnet/ring.h b/contrib/telnet/telnet/ring.h index 48606e5..516b7a5 100644 --- a/contrib/telnet/telnet/ring.h +++ b/contrib/telnet/telnet/ring.h @@ -73,35 +73,35 @@ typedef struct { /* Initialization routine */ extern int - ring_init P((Ring *ring, unsigned char *buffer, int count)); + ring_init(Ring *ring, unsigned char *buffer, int count); /* Data movement routines */ extern void - ring_supply_data P((Ring *ring, unsigned char *buffer, int count)); + ring_supply_data(Ring *ring, unsigned char *buffer, int count); #ifdef notdef extern void - ring_consume_data P((Ring *ring, unsigned char *buffer, int count)); + ring_consume_data(Ring *ring, unsigned char *buffer, int count); #endif /* Buffer state transition routines */ extern void - ring_supplied P((Ring *ring, int count)), - ring_consumed P((Ring *ring, int count)); + ring_supplied(Ring *ring, int count), + ring_consumed(Ring *ring, int count); /* Buffer state query routines */ extern int - ring_at_mark P((Ring *)), - ring_empty_count P((Ring *ring)), - ring_empty_consecutive P((Ring *ring)), - ring_full_count P((Ring *ring)), - ring_full_consecutive P((Ring *ring)); + ring_at_mark(Ring *), + ring_empty_count(Ring *ring), + ring_empty_consecutive(Ring *ring), + ring_full_count(Ring *ring), + ring_full_consecutive(Ring *ring); #ifdef ENCRYPTION extern void - ring_encrypt P((Ring *ring, void (*func)(unsigned char *, int))), - ring_clearto P((Ring *ring)); + ring_encrypt(Ring *ring, void (*func)(unsigned char *, int)), + ring_clearto(Ring *ring); #endif /* ENCRYPTION */ extern void - ring_clear_mark P((Ring *)), - ring_mark P((Ring *)); + ring_clear_mark(Ring *), + ring_mark(Ring *); |