diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2012-02-18 12:29:19 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-02-19 13:26:03 +0100 |
commit | 2ca0a9cdb2d0498f3ccbf1695c8a6dbb2f10e677 (patch) | |
tree | 2f673c896c8929a67cb5e774ab9ee4bae56bf5f6 /examples/sample.c | |
parent | 29ad0d19f916b5ee1a41db1b0a973cfc79472d2a (diff) | |
download | libssh-2ca0a9cdb2d0498f3ccbf1695c8a6dbb2f10e677.tar.gz libssh-2ca0a9cdb2d0498f3ccbf1695c8a6dbb2f10e677.tar.xz libssh-2ca0a9cdb2d0498f3ccbf1695c8a6dbb2f10e677.zip |
examples: Make variabes static in client sample.
Fixes sparse warnings.
Diffstat (limited to 'examples/sample.c')
-rw-r--r-- | examples/sample.c | 13 |
1 files changed, 7 insertions, 6 deletions
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) { |