From ca54d72376a35225cebfd3615acb707c072ae22a Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Sun, 11 Sep 2016 21:45:26 +0200 Subject: Declare some variables as static --- print-telnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-telnet.c') diff --git a/print-telnet.c b/print-telnet.c index ab85e10f..2e32fce8 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -89,7 +89,7 @@ #define SYNCH 242 /* for telfunc calls */ #ifdef TELCMDS -const char *telcmds[] = { +static const char *telcmds[] = { "EOF", "SUSP", "ABORT", "EOR", "SE", "NOP", "DMARK", "BRK", "IP", "AO", "AYT", "EC", "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC", 0, @@ -150,7 +150,7 @@ extern char *telcmds[]; #define NTELOPTS (1+TELOPT_NEW_ENVIRON) #ifdef TELOPTS -const char *telopts[NTELOPTS+1] = { +static const char *telopts[NTELOPTS+1] = { "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME", "STATUS", "TIMING MARK", "RCTE", "NAOL", "NAOP", "NAOCRD", "NAOHTS", "NAOHTD", "NAOFFD", "NAOVTS", -- cgit v1.2.1