summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2019-09-19 23:13:07 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2019-09-19 23:13:07 +0200
commit0c49b92adb7ebdee5299216bf7ffbeb972d779c1 (patch)
tree333f236a2beaafd55bdc6d626ed6f648e21323cc
parentabc87e48796c9184ffc478089119e316270c7022 (diff)
downloadscreen-0c49b92adb7ebdee5299216bf7ffbeb972d779c1.tar.gz
Get rid of externs in telnet.c
Just include correct headers. We need to expose af properly in screen.h for this to work. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r--src/screen.h1
-rw-r--r--src/telnet.c8
2 files changed, 3 insertions, 6 deletions
diff --git a/src/screen.h b/src/screen.h
index 01a9d97..3c327cf 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -278,6 +278,7 @@ extern bool xflag;
/* Indicator whether the current tty exists in another namespace. */
extern bool attach_tty_is_in_new_ns;
+extern int af;
extern int attach_fd;
extern int dflag;
extern int force_vt;
diff --git a/src/telnet.c b/src/telnet.c
index 5a39cad..094a39b 100644
--- a/src/telnet.c
+++ b/src/telnet.c
@@ -40,13 +40,9 @@
#include "screen.h"
+#include "ansi.h"
#include "misc.h"
-
-extern Window *fore;
-extern Layer *flayer;
-extern bool visual_bell;
-extern char screenterm[];
-extern int af;
+#include "termcap.h"
static void TelReply(Window *, char *, size_t);
static void TelDocmd(Window *, int, int);