From 6cac5deb8618f9180706ed24d0386b3e7524a297 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 30 Aug 2001 02:54:03 +0000 Subject: [PATCH] * termio-tn.c, termios-tn.c: Define dummy variables if STREAMSPTY isn't defined, to silence compiler complaints about empty files git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13693 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnetd/ChangeLog | 5 +++++ src/appl/telnet/telnetd/termio-tn.c | 2 ++ src/appl/telnet/telnetd/termios-tn.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index aa85149e0..18c8be364 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,8 @@ +2001-08-29 Ken Raeburn + + * termio-tn.c, termios-tn.c: Define dummy variables if STREAMSPTY + isn't defined, to silence compiler complaints about empty files. + 2001-08-02 Tom Yu * authenc.c (net_write): Rewrite in terms of netwrite(). diff --git a/src/appl/telnet/telnetd/termio-tn.c b/src/appl/telnet/telnetd/termio-tn.c index 24eaffdce..c34f5eb16 100644 --- a/src/appl/telnet/telnetd/termio-tn.c +++ b/src/appl/telnet/telnetd/termio-tn.c @@ -28,4 +28,6 @@ int readstream_termio(cmd, ibuf, vstop, vstart, ixon) return -1; } +#else +int silence_warnings_about_empty_source_file_termio = 42; #endif /* STREAMSPTY */ diff --git a/src/appl/telnet/telnetd/termios-tn.c b/src/appl/telnet/telnetd/termios-tn.c index 7e2aa5cb4..3e5488371 100644 --- a/src/appl/telnet/telnetd/termios-tn.c +++ b/src/appl/telnet/telnetd/termios-tn.c @@ -30,4 +30,6 @@ int readstream_termios(cmd, ibuf, vstop, vstart, ixon) return -1; } +#else +int silence_warnings_about_empty_source_file_termios = 42; #endif /* STREAMSPTY */ -- 2.26.2