Cleanup for GCC 2.
This commit is contained in:
parent
87d1fd6d8a
commit
f19d90d7fe
@ -40,7 +40,7 @@ static char sccsid[] = "@(#)rpc_cout.c 1.8 87/06/24 (C) 1987 SMI";
|
|||||||
#include "rpc_util.h"
|
#include "rpc_util.h"
|
||||||
#include "rpc_parse.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();
|
emit_union(), emit_struct(), emit_typedef(), print_stat();
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
static char sccsid[] = "@(#)rpc_hout.c 1.6 87/07/28 (C) 1987 SMI";
|
static char sccsid[] = "@(#)rpc_hout.c 1.6 87/07/28 (C) 1987 SMI";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int pconstdef(), pstructdef(), puniondef(), pdefine(), pprogramdef(),
|
static int pconstdef(), pstructdef(), puniondef(), pdefine(), pprogramdef(),
|
||||||
penumdef(), ptypedef(), pdeclaration(), undefined2();
|
penumdef(), ptypedef(), pdeclaration(), undefined2();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -64,7 +64,7 @@ static char *allv[] = {
|
|||||||
static int allc = sizeof(allv)/sizeof(allv[0]);
|
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();
|
parseargs();
|
||||||
|
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
|
@ -40,7 +40,7 @@ static char sccsid[] = "@(#)rpc_parse.c 1.4 87/04/28 (C) 1987 SMI";
|
|||||||
#include "rpc_scan.h"
|
#include "rpc_scan.h"
|
||||||
#include "rpc_parse.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(),
|
def_union(), def_typedef(), get_declaration(), get_type(),
|
||||||
unsigned_dec();
|
unsigned_dec();
|
||||||
/*
|
/*
|
||||||
|
@ -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 int pushed = 0; /* is a token pushed */
|
||||||
static token lasttok; /* last token, if 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();
|
directive(), printdirective(), docppline();
|
||||||
/*
|
/*
|
||||||
* scan expecting 1 given token
|
* scan expecting 1 given token
|
||||||
|
@ -46,7 +46,7 @@ static char ARG[] = "argument";
|
|||||||
static char RESULT[] = "result";
|
static char RESULT[] = "result";
|
||||||
static char ROUTINE[] = "local";
|
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.
|
* write most of the service, that is, everything but the registrations.
|
||||||
*/
|
*/
|
||||||
|
@ -55,7 +55,7 @@ FILE *fin; /* file pointer of current input */
|
|||||||
|
|
||||||
list *defined; /* list of defined things */
|
list *defined; /* list of defined things */
|
||||||
|
|
||||||
int printwhere();
|
static int printwhere();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reinitialize the world
|
* Reinitialize the world
|
||||||
|
@ -57,6 +57,7 @@ static char sccsid[] = "@(#)commands.c 5.5 (Berkeley) 3/22/91";
|
|||||||
#include <varargs.h>
|
#include <varargs.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include <arpa/inet.h>
|
||||||
#include <arpa/telnet.h>
|
#include <arpa/telnet.h>
|
||||||
|
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
@ -246,7 +247,7 @@ struct sendlist {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
extern int
|
static int
|
||||||
send_esc P((void)),
|
send_esc P((void)),
|
||||||
send_help P((void)),
|
send_help P((void)),
|
||||||
send_docmd P((char *)),
|
send_docmd P((char *)),
|
||||||
@ -254,6 +255,12 @@ extern int
|
|||||||
send_willcmd P((char *)),
|
send_willcmd P((char *)),
|
||||||
send_wontcmd 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[] = {
|
static struct sendlist Sendlist[] = {
|
||||||
{ "ao", "Send Telnet Abort output", 1, 0, 0, 2, AO },
|
{ "ao", "Send Telnet Abort output", 1, 0, 0, 2, AO },
|
||||||
{ "ayt", "Send Telnet 'Are You There'", 1, 0, 0, 2, AYT },
|
{ "ayt", "Send Telnet 'Are You There'", 1, 0, 0, 2, AYT },
|
||||||
@ -382,7 +389,6 @@ send_esc()
|
|||||||
send_docmd(name)
|
send_docmd(name)
|
||||||
char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
void send_do();
|
|
||||||
return(send_tncmd(send_do, "do", name));
|
return(send_tncmd(send_do, "do", name));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -390,21 +396,18 @@ send_docmd(name)
|
|||||||
send_dontcmd(name)
|
send_dontcmd(name)
|
||||||
char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
void send_dont();
|
|
||||||
return(send_tncmd(send_dont, "dont", name));
|
return(send_tncmd(send_dont, "dont", name));
|
||||||
}
|
}
|
||||||
static int
|
static int
|
||||||
send_willcmd(name)
|
send_willcmd(name)
|
||||||
char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
void send_will();
|
|
||||||
return(send_tncmd(send_will, "will", name));
|
return(send_tncmd(send_will, "will", name));
|
||||||
}
|
}
|
||||||
static int
|
static int
|
||||||
send_wontcmd(name)
|
send_wontcmd(name)
|
||||||
char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
void send_wont();
|
|
||||||
return(send_tncmd(send_wont, "wont", name));
|
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)
|
#if defined(AUTHENTICATE)
|
||||||
extern int auth_togdebug P((int));
|
extern int auth_togdebug P((int));
|
||||||
#endif
|
#endif
|
||||||
@ -1465,7 +1468,7 @@ struct slclist {
|
|||||||
int arg;
|
int arg;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void slc_help();
|
static void slc_help();
|
||||||
|
|
||||||
struct slclist SlcList[] = {
|
struct slclist SlcList[] = {
|
||||||
{ "export", "Use local special character definitions",
|
{ "export", "Use local special character definitions",
|
||||||
@ -1548,7 +1551,8 @@ extern void
|
|||||||
env_export P((unsigned char *)),
|
env_export P((unsigned char *)),
|
||||||
env_unexport P((unsigned char *)),
|
env_unexport P((unsigned char *)),
|
||||||
env_send P((unsigned char *)),
|
env_send P((unsigned char *)),
|
||||||
env_list P((void)),
|
env_list P((void));
|
||||||
|
static void
|
||||||
env_help P((void));
|
env_help P((void));
|
||||||
|
|
||||||
struct envlist EnvList[] = {
|
struct envlist EnvList[] = {
|
||||||
@ -2134,7 +2138,7 @@ tn(argc, argv)
|
|||||||
register struct hostent *host = 0;
|
register struct hostent *host = 0;
|
||||||
struct sockaddr_in sin;
|
struct sockaddr_in sin;
|
||||||
struct servent *sp = 0;
|
struct servent *sp = 0;
|
||||||
unsigned long temp, inet_addr();
|
unsigned long temp;
|
||||||
extern char *inet_ntoa();
|
extern char *inet_ntoa();
|
||||||
#if defined(IP_OPTIONS) && defined(IPPROTO_IP)
|
#if defined(IP_OPTIONS) && defined(IPPROTO_IP)
|
||||||
char *srp = 0, *strrchr();
|
char *srp = 0, *strrchr();
|
||||||
@ -2389,7 +2393,7 @@ static char
|
|||||||
envhelp[] = "change environment variables ('environ ?' for more)",
|
envhelp[] = "change environment variables ('environ ?' for more)",
|
||||||
modestring[] = "try to enter line or character mode ('mode ?' for more)";
|
modestring[] = "try to enter line or character mode ('mode ?' for more)";
|
||||||
|
|
||||||
extern int help();
|
static int help();
|
||||||
|
|
||||||
static Command cmdtab[] = {
|
static Command cmdtab[] = {
|
||||||
{ "close", closehelp, bye, 1 },
|
{ "close", closehelp, bye, 1 },
|
||||||
|
@ -171,11 +171,13 @@ extern int kludgelinemode;
|
|||||||
* 1 Do add this character
|
* 1 Do add this character
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void intp(), sendbrk(), sendabort();
|
||||||
|
|
||||||
int
|
int
|
||||||
TerminalSpecialChars(c)
|
TerminalSpecialChars(c)
|
||||||
int c;
|
int c;
|
||||||
{
|
{
|
||||||
void xmitAO(), xmitEL(), xmitEC(), intp(), sendbrk();
|
void xmitAO(), xmitEL(), xmitEC();
|
||||||
|
|
||||||
if (c == termIntChar) {
|
if (c == termIntChar) {
|
||||||
intp();
|
intp();
|
||||||
@ -375,6 +377,7 @@ TerminalRestoreState()
|
|||||||
* local/no signal mapping
|
* local/no signal mapping
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
SIG_FUNC_RET ayt_status();
|
||||||
|
|
||||||
void
|
void
|
||||||
TerminalNewMode(f)
|
TerminalNewMode(f)
|
||||||
@ -649,8 +652,6 @@ TerminalNewMode(f)
|
|||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
#ifdef SIGINFO
|
#ifdef SIGINFO
|
||||||
SIG_FUNC_RET ayt_status();
|
|
||||||
|
|
||||||
(void) signal(SIGINFO, ayt_status);
|
(void) signal(SIGINFO, ayt_status);
|
||||||
#endif SIGINFO
|
#endif SIGINFO
|
||||||
#ifdef SIGTSTP
|
#ifdef SIGTSTP
|
||||||
|
Loading…
Reference in New Issue
Block a user