summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-07-06 19:50:03 +0000
committerEzra Peisach <epeisach@mit.edu>2001-07-06 19:50:03 +0000
commit44e2339ebb75c7e95c21f101eb2e638fcb3db141 (patch)
tree1b7f7d6764c4dad2a48e7292b30990a5413e9e02 /src
parent11ca9e657d9378318d61ad2a341a396940cc53fa (diff)
downloadkrb5-44e2339ebb75c7e95c21f101eb2e638fcb3db141.tar.gz
krb5-44e2339ebb75c7e95c21f101eb2e638fcb3db141.tar.xz
krb5-44e2339ebb75c7e95c21f101eb2e638fcb3db141.zip
* 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
Diffstat (limited to 'src')
-rw-r--r--src/appl/telnet/telnet/ChangeLog8
-rw-r--r--src/appl/telnet/telnet/commands.c16
-rw-r--r--src/appl/telnet/telnet/configure.in6
3 files changed, 29 insertions, 1 deletions
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 <epeisach@mit.edu>
+
+ * 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 <epeisach@mit.edu>
* 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,11 +2376,21 @@ 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
tn(argc, argv)
@@ -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 <unistd.h>
#include <stdlib.h>],parsetos,1)
+dnl
+KRB5_NEED_PROTO([#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>],herror,1)
+dnl
CHECK_SIGNALS
if test "$KRB4_LIB" = ''; then
AC_MSG_RESULT(No Kerberos 4 authentication)