Cleanup for GCC 2.

This commit is contained in:
mycroft 1993-04-19 07:28:01 +00:00
parent ef0e3710ea
commit aaa05ab124
9 changed files with 31 additions and 26 deletions

View File

@ -40,7 +40,7 @@ static char sccsid[] = "@(#)rpc_cout.c 1.8 87/06/24 (C) 1987 SMI";
#include "rpc_util.h"
#include "rpc_parse.h"
int print_header(), print_trailer(), space(), emit_enum(),
static int print_header(), print_trailer(), space(), emit_enum(),
emit_union(), emit_struct(), emit_typedef(), print_stat();

View File

@ -31,7 +31,7 @@
static char sccsid[] = "@(#)rpc_hout.c 1.6 87/07/28 (C) 1987 SMI";
#endif
int pconstdef(), pstructdef(), puniondef(), pdefine(), pprogramdef(),
static int pconstdef(), pstructdef(), puniondef(), pdefine(), pprogramdef(),
penumdef(), ptypedef(), pdeclaration(), undefined2();
/*

View File

@ -64,7 +64,7 @@ static char *allv[] = {
static int allc = sizeof(allv)/sizeof(allv[0]);
int h_output(), c_output(), s_output(), l_output(), do_registers(),
static int h_output(), c_output(), s_output(), l_output(), do_registers(),
parseargs();
main(argc, argv)

View File

@ -40,7 +40,7 @@ static char sccsid[] = "@(#)rpc_parse.c 1.4 87/04/28 (C) 1987 SMI";
#include "rpc_scan.h"
#include "rpc_parse.h"
int isdefined(), def_struct(), def_program(), def_enum(), def_const(),
static int isdefined(), def_struct(), def_program(), def_enum(), def_const(),
def_union(), def_typedef(), get_declaration(), get_type(),
unsigned_dec();
/*

View File

@ -47,7 +47,7 @@ static char sccsid[] = "@(#)rpc_scan.c 1.6 87/06/24 (C) 1987 SMI";
static int pushed = 0; /* is a token pushed */
static token lasttok; /* last token, if pushed */
int unget_token(), findstrconst(), findconst(), findkind(), cppline(),
static int unget_token(), findstrconst(), findconst(), findkind(), cppline(),
directive(), printdirective(), docppline();
/*
* scan expecting 1 given token

View File

@ -46,7 +46,7 @@ static char ARG[] = "argument";
static char RESULT[] = "result";
static char ROUTINE[] = "local";
int write_program(), printerr(), printif();
static int write_program(), printerr(), printif();
/*
* write most of the service, that is, everything but the registrations.
*/

View File

@ -55,7 +55,7 @@ FILE *fin; /* file pointer of current input */
list *defined; /* list of defined things */
int printwhere();
static int printwhere();
/*
* Reinitialize the world

View File

@ -57,6 +57,7 @@ static char sccsid[] = "@(#)commands.c 5.5 (Berkeley) 3/22/91";
#include <varargs.h>
#include <errno.h>
#include <arpa/inet.h>
#include <arpa/telnet.h>
#include "general.h"
@ -246,7 +247,7 @@ struct sendlist {
};
extern int
static int
send_esc P((void)),
send_help P((void)),
send_docmd P((char *)),
@ -254,6 +255,12 @@ extern int
send_willcmd P((char *)),
send_wontcmd P((char *));
extern int
send_do P((int, int)),
send_dont P((int, int)),
send_will P((int, int)),
send_wont P((int, int));
static struct sendlist Sendlist[] = {
{ "ao", "Send Telnet Abort output", 1, 0, 0, 2, AO },
{ "ayt", "Send Telnet 'Are You There'", 1, 0, 0, 2, AYT },
@ -382,7 +389,6 @@ send_esc()
send_docmd(name)
char *name;
{
void send_do();
return(send_tncmd(send_do, "do", name));
}
@ -390,21 +396,18 @@ send_docmd(name)
send_dontcmd(name)
char *name;
{
void send_dont();
return(send_tncmd(send_dont, "dont", name));
}
static int
send_willcmd(name)
char *name;
{
void send_will();
return(send_tncmd(send_will, "will", name));
}
static int
send_wontcmd(name)
char *name;
{
void send_wont();
return(send_tncmd(send_wont, "wont", name));
}
@ -603,7 +606,7 @@ togxbinary(val)
}
extern int togglehelp P((void));
static int togglehelp P((void));
#if defined(AUTHENTICATE)
extern int auth_togdebug P((int));
#endif
@ -1465,7 +1468,7 @@ struct slclist {
int arg;
};
extern void slc_help();
static void slc_help();
struct slclist SlcList[] = {
{ "export", "Use local special character definitions",
@ -1548,7 +1551,8 @@ extern void
env_export P((unsigned char *)),
env_unexport P((unsigned char *)),
env_send P((unsigned char *)),
env_list P((void)),
env_list P((void));
static void
env_help P((void));
struct envlist EnvList[] = {
@ -2134,7 +2138,7 @@ tn(argc, argv)
register struct hostent *host = 0;
struct sockaddr_in sin;
struct servent *sp = 0;
unsigned long temp, inet_addr();
unsigned long temp;
extern char *inet_ntoa();
#if defined(IP_OPTIONS) && defined(IPPROTO_IP)
char *srp = 0, *strrchr();
@ -2389,7 +2393,7 @@ static char
envhelp[] = "change environment variables ('environ ?' for more)",
modestring[] = "try to enter line or character mode ('mode ?' for more)";
extern int help();
static int help();
static Command cmdtab[] = {
{ "close", closehelp, bye, 1 },

View File

@ -171,11 +171,13 @@ extern int kludgelinemode;
* 1 Do add this character
*/
void intp(), sendbrk(), sendabort();
int
TerminalSpecialChars(c)
int c;
{
void xmitAO(), xmitEL(), xmitEC(), intp(), sendbrk();
void xmitAO(), xmitEL(), xmitEC();
if (c == termIntChar) {
intp();
@ -375,6 +377,7 @@ TerminalRestoreState()
* local/no signal mapping
*/
SIG_FUNC_RET ayt_status();
void
TerminalNewMode(f)
@ -649,8 +652,6 @@ TerminalNewMode(f)
#endif
} else {
#ifdef SIGINFO
SIG_FUNC_RET ayt_status();
(void) signal(SIGINFO, ayt_status);
#endif SIGINFO
#ifdef SIGTSTP