kill some warnings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10587 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-08-29 00:45:23 +00:00
parent 8da2a65129
commit 67813438a7
10 changed files with 23 additions and 13 deletions

View File

@@ -128,6 +128,8 @@ int fb64_reply (unsigned char *, int, struct fb *);
static void fb64_session (Session_Key *, int, struct fb *);
void fb64_stream_key (des_cblock, struct stinfo *);
int fb64_keyid (int, unsigned char *, int *, struct fb *);
void fb64_printsub(unsigned char *, int ,
unsigned char *, int , char *);
void cfb64_init(int server)
{

View File

@@ -350,11 +350,12 @@ send_wontcmd(char *name)
return(send_tncmd(send_wont, "wont", name));
}
extern char *telopts[]; /* XXX */
static int
send_tncmd(void (*func)(), char *cmd, char *name)
{
char **cpp;
extern char *telopts[];
int val = 0;
if (isprefix(name, "help") || isprefix(name, "?")) {

View File

@@ -95,6 +95,8 @@ extern char
dont[],
will[],
wont[],
do_dont_resp[],
will_wont_resp[],
options[], /* All the little options */
*hostname; /* Who are we connected to? */
#if defined(ENCRYPTION)
@@ -433,3 +435,4 @@ extern int linemode;
#ifdef KLUDGELINEMODE
extern int kludgelinemode;
#endif
extern int want_status_response;

View File

@@ -134,6 +134,11 @@ krb5_init(void)
}
#endif
#if defined(AUTHENTICATION) && defined(KRB4)
extern char *dest_realm, dst_realm_buf[];
extern int dst_realm_sz;
#endif
int
main(int argc, char **argv)
{
@@ -264,8 +269,6 @@ main(int argc, char **argv)
case 'k':
#if defined(AUTHENTICATION) && defined(KRB4)
{
extern char *dest_realm, dst_realm_buf[];
extern int dst_realm_sz;
dest_realm = dst_realm_buf;
strlcpy(dest_realm, optarg, dst_realm_sz);
}

View File

@@ -491,9 +491,8 @@ TerminalNewMode(int f)
}
} else {
sigset_t sm;
#ifdef SIGINFO
RETSIGTYPE ayt_status(int);
#ifdef SIGINFO
signal(SIGINFO, ayt_status);
#endif
#ifdef SIGTSTP

View File

@@ -176,7 +176,6 @@ void
optionstatus(void)
{
int i;
extern char will_wont_resp[], do_dont_resp[];
for (i = 0; i < 256; i++) {
if (do_dont_resp[i]) {
@@ -254,7 +253,6 @@ printsub(int direction, unsigned char *pointer, int length)
{
int i;
unsigned char buf[512];
extern int want_status_response;
if (showoptions || direction == 0 ||
(want_status_response && (pointer[0] == TELOPT_STATUS))) {

View File

@@ -182,6 +182,11 @@ extern struct clocks_t clocks;
extern int log_unauth;
extern int no_warn;
extern int def_tspeed, def_rspeed;
#ifdef TIOCSWINSZ
extern int def_row, def_col;
#endif
#ifdef STREAMSPTY
extern int really_stream;
#endif

View File

@@ -825,8 +825,6 @@ void getptyslave(void)
int t = -1;
struct winsize ws;
extern int def_row, def_col;
extern int def_tspeed, def_rspeed;
/*
* Opening the slave side may cause initilization of the
* kernel tty structure. We need remember the state of

View File

@@ -138,6 +138,10 @@ char valid_opts[] = "Bd:hklnS:u:UL:y"
static void doit(struct sockaddr*, int);
#ifdef ENCRYPTION
extern int des_check_key;
#endif
int
main(int argc, char **argv)
{
@@ -150,7 +154,6 @@ main(int argc, char **argv)
int tos = -1;
#endif
#ifdef ENCRYPTION
extern int des_check_key;
des_check_key = 1; /* Kludge for Mac NCSA telnet 2.6 /bg */
#endif
pfrontp = pbackp = ptyobuf;

View File

@@ -49,7 +49,7 @@ int def_row = 0, def_col = 0;
* Check for changes to flow control
*/
void
flowstat()
flowstat(void)
{
if (his_state_is_will(TELOPT_LFLOW)) {
if (tty_flowmode() != flowmode) {
@@ -81,8 +81,6 @@ flowstat()
void
clientstat(int code, int parm1, int parm2)
{
void netflush();
/*
* Get a copy of terminal characteristics.
*/