aboutsummaryrefslogtreecommitdiff
path: root/networking/telnetd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r--networking/telnetd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 25d05fe7a..13c36aa46 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -44,6 +44,7 @@
44#define DEBUG 0 44#define DEBUG 0
45 45
46#include "libbb.h" 46#include "libbb.h"
47#include "common_bufsiz.h"
47#include <syslog.h> 48#include <syslog.h>
48 49
49#if DEBUG 50#if DEBUG
@@ -82,8 +83,9 @@ struct globals {
82 const char *issuefile; 83 const char *issuefile;
83 int maxfd; 84 int maxfd;
84} FIX_ALIASING; 85} FIX_ALIASING;
85#define G (*(struct globals*)&bb_common_bufsiz1) 86#define G (*(struct globals*)bb_common_bufsiz1)
86#define INIT_G() do { \ 87#define INIT_G() do { \
88 setup_common_bufsiz(); \
87 G.loginpath = "/bin/login"; \ 89 G.loginpath = "/bin/login"; \
88 G.issuefile = "/etc/issue.net"; \ 90 G.issuefile = "/etc/issue.net"; \
89} while (0) 91} while (0)