aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/sample.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/examples/sample.c b/examples/sample.c
index 0ae8343..6b07d9f 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) {