* main.c: Declare usage() static.
* ring.h: Provide full prototypes for ring_mark() and
ring_clear_mark().
* sys_bsd.c: Declare signal handler and NetNonblockingIO static.
* telnet.c: Declear gettermname() and mklist() static. Change
local variable timeout to tmie_out to avoid shadowing curses
header file.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13541
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-01 Ezra Peisach <epeisach@mit.edu>
+
+ * commands.c: Declare local functions static.
+
+ * main.c: Declare usage() static.
+
+ * ring.h: Provide full prototypes for ring_mark() and
+ ring_clear_mark().
+
+ * sys_bsd.c: Declare signal handler and NetNonblockingIO static.
+
+ * telnet.c: Declear gettermname() and mklist() static. Change
+ local variable timeout to tmie_out to avoid shadowing curses
+ header file.
+
2001-06-22 Ezra Peisach <epeisach@mit.edu>
* commands.c (tn): Change sin to sin4 to not shadow global.
extern char **genget();
extern int Ambiguous();
-static int call();
+static int call ();
void cmdrc P((char *, char *));
static int
send_tncmd P((void (*func)(), char *, char *));
+static int help(int, char **);
typedef struct {
char *name; /* command name */
int arg1;
};
-extern int modehelp();
+static int modehelp(void);
static struct modelist ModeList[] = {
{ "character", "Disable LINEMODE option", docharmode, 1 },
};
- int
+static int
modehelp()
{
struct modelist *mt;
}
/*VARARGS*/
- int
+static int
suspend()
{
#ifdef SIGTSTP
#if !defined(TN3270)
/*ARGSUSED*/
- int
+static int
shell(argc, argv)
int argc;
char *argv[];
}
/*VARARGS*/
- int
+static int
logout()
{
send_do(TELOPT_LOGOUT, 1);
int arg;
};
-static void slc_help();
+static void slc_help(void);
struct slclist SlcList[] = {
{ "export", "Use local special character definitions",
genget(name, (char **) EnvList, sizeof(struct envlist));
}
-int
+static int
env_cmd(argc, argv)
int argc;
char *argv[];
struct env_lst envlisthead;
- struct env_lst *
+static struct env_lst *
env_find(var)
unsigned char *var;
{
return 0;
}
-int
+static int
forw_cmd(argc, argv)
int argc;
char *argv[];
send_will P((int, int)),
send_wont P((int, int));
+extern void
+ sendbrk P((void)),
+ intp P((void)),
+ xmitAO P((void)),
+ xmitEL P((void)),
+ xmitEC P((void));
+
extern void
lm_will P((unsigned char *, int)),
lm_wont P((unsigned char *, int)),
#endif
}
- void
+static void
usage()
{
fprintf(stderr, "Usage: %s %s%s%s%s\n",
#endif /* ENCRYPTION */
extern void
- ring_clear_mark(),
- ring_mark();
+ ring_clear_mark P((Ring *ring)),
+ ring_mark P((Ring *ring));
extern int
ring_at_mark P((Ring *));
* 1 Do add this character
*/
-extern void xmitAO(), xmitEL(), xmitEC(), intp(), sendbrk();
-
int
TerminalSpecialChars(c)
int c;
if (f != -1) {
#ifdef SIGTSTP
- SIG_FUNC_RET susp();
+ static SIG_FUNC_RET susp();
#endif /* SIGTSTP */
#ifdef SIGINFO
SIG_FUNC_RET ayt();
}
- void
+static void
NetNonblockingIO(fd, onoff)
int fd;
int onoff;
*/
/* ARGSUSED */
- SIG_FUNC_RET
+static SIG_FUNC_RET
deadpeer(sig)
int sig;
{
int intr_waiting = 0;
/* ARGSUSED */
- SIG_FUNC_RET
+static SIG_FUNC_RET
intr(sig)
int sig;
{
}
/* ARGSUSED */
- SIG_FUNC_RET
+static SIG_FUNC_RET
intr2(sig)
int sig;
{
#ifdef SIGTSTP
/* ARGSUSED */
- SIG_FUNC_RET
+static SIG_FUNC_RET
susp(sig)
int sig;
{
#ifdef SIGWINCH
/* ARGSUSED */
- SIG_FUNC_RET
+static SIG_FUNC_RET
sendwin(sig)
int sig;
{
static char *name_unknown = "UNKNOWN";
static char *unknown[] = { 0, 0 };
- char **
+static char **
mklist(buf, name)
char *buf, *name;
{
int resettermname = 1;
- char *
+static char *
gettermname()
{
char *tname;
*/
if (wantencryption) {
extern int auth_has_failed;
- time_t timeout = time(0) + 60;
+ time_t time_out = time(0) + 60;
send_do(TELOPT_ENCRYPT, 1);
send_will(TELOPT_ENCRYPT, 1);
}
if (encrypt_is_encrypting())
break;
- if (time(0) > timeout) {
+ if (time(0) > time_out) {
printf("\nEncryption could not be enabled. Good-bye.\n\r");
Exit(1);
}