From 2ca0a9cdb2d0498f3ccbf1695c8a6dbb2f10e677 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 18 Feb 2012 12:29:19 +0100 Subject: examples: Make variabes static in client sample. Fixes sparse warnings. --- examples/sample.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'examples/sample.c') diff --git a/examples/sample.c b/examples/sample.c index 0ae83430..6b07d9f6 100644 --- a/examples/sample.c +++ b/examples/sample.c @@ -35,14 +35,15 @@ clients must be made or how a client should react. #include "examples_common.h" #define MAXCMD 10 -char *host; -char *user; -char *cmds[MAXCMD]; -struct termios terminal; -char *pcap_file=NULL; +static char *host; +static char *user; +static char *cmds[MAXCMD]; +static struct termios terminal; -char *proxycommand; +static char *pcap_file=NULL; + +static char *proxycommand; static int auth_callback(const char *prompt, char *buf, size_t len, int echo, int verify, void *userdata) { -- cgit