1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

examples: Make variabes static in client sample.

Fixes sparse warnings.
This commit is contained in:
Andreas Schneider
2012-02-18 12:29:19 +01:00
parent 29ad0d19f9
commit 2ca0a9cdb2

View File

@ -35,14 +35,15 @@ clients must be made or how a client should react.
#include "examples_common.h" #include "examples_common.h"
#define MAXCMD 10 #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, static int auth_callback(const char *prompt, char *buf, size_t len,
int echo, int verify, void *userdata) { int echo, int verify, void *userdata) {