From 44e2339ebb75c7e95c21f101eb2e638fcb3db141 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 6 Jul 2001 19:50:03 +0000 Subject: [PATCH] * configure.in: Check if prototype needed for herror() * commands.c (ayt_status): Add explict return type (void or int) depending on signal handler definition. Add prototype for herror if system does not provide one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13579 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnet/ChangeLog | 8 ++++++++ src/appl/telnet/telnet/commands.c | 16 +++++++++++++++- src/appl/telnet/telnet/configure.in | 6 ++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog index 33d81d60d..77e8e9b62 100644 --- a/src/appl/telnet/telnet/ChangeLog +++ b/src/appl/telnet/telnet/ChangeLog @@ -1,3 +1,11 @@ +2001-07-06 Ezra Peisach + + * configure.in: Check if prototype needed for herror(). + + * commands.c (ayt_status): Add explict return type (void or int) + depending on signal handler definition. Add prototype for herror + if system does not provide one. + 2001-07-02 Ezra Peisach * commands.c: Remove prototypes for EncryptAutoEnc(), diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c index b2a9c60d1..cab1613a7 100644 --- a/src/appl/telnet/telnet/commands.c +++ b/src/appl/telnet/telnet/commands.c @@ -130,6 +130,10 @@ static int send_tncmd P((void (*func)(), char *, char *)); static int help(int, char **); +#ifdef NEED_HERROR_PROTO +extern void herror(const char *); +#endif + typedef struct { char *name; /* command name */ char *help; /* help string (NULL for no help) */ @@ -2372,10 +2376,20 @@ status(argc, argv) /* * Function that gets called when SIGINFO is received. */ +#if defined(CRAY) || (defined(USE_TERMIO) && !defined(SYSV_TERMIO)) +void +ayt_status() +{ + (void) call(status, "status", "notmuch", 0); +} +#else +int ayt_status() { (void) call(status, "status", "notmuch", 0); + return 0; } +#endif #endif int @@ -2624,7 +2638,7 @@ tn(argc, argv) return 0; } -#define HELPINDENT (sizeof ("connect")) +#define HELPINDENT ((int) sizeof ("connect")) static char openhelp[] = "connect to a site", diff --git a/src/appl/telnet/telnet/configure.in b/src/appl/telnet/telnet/configure.in index 346436154..9e9efafd0 100644 --- a/src/appl/telnet/telnet/configure.in +++ b/src/appl/telnet/telnet/configure.in @@ -25,6 +25,12 @@ fi fi KRB5_NEED_PROTO([#include #include ],parsetos,1) +dnl +KRB5_NEED_PROTO([#include +#include +#include +#include ],herror,1) +dnl CHECK_SIGNALS if test "$KRB4_LIB" = ''; then AC_MSG_RESULT(No Kerberos 4 authentication) -- 2.26.2