aboutsummaryrefslogtreecommitdiff
path: root/examples/samplesshd-kbdint.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-18 12:35:16 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-19 13:26:03 +0100
commit387d9e485546a4f7e02e89fdcd097e700cf9ca81 (patch)
treee7c60b13007c09d4faf822fa83ee1bec78034261 /examples/samplesshd-kbdint.c
parent2ca0a9cdb2d0498f3ccbf1695c8a6dbb2f10e677 (diff)
downloadlibssh-387d9e485546a4f7e02e89fdcd097e700cf9ca81.tar.gz
libssh-387d9e485546a4f7e02e89fdcd097e700cf9ca81.tar.xz
libssh-387d9e485546a4f7e02e89fdcd097e700cf9ca81.zip
examples: Fix sparse warnings in sshd examples.
Diffstat (limited to 'examples/samplesshd-kbdint.c')
-rw-r--r--examples/samplesshd-kbdint.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/samplesshd-kbdint.c b/examples/samplesshd-kbdint.c
index b1eaad70..faecfd9b 100644
--- a/examples/samplesshd-kbdint.c
+++ b/examples/samplesshd-kbdint.c
@@ -36,8 +36,8 @@ clients must be made or how a client should react.
#endif
#ifdef WITH_PCAP
-const char *pcap_file="debug.server.pcap";
-ssh_pcap_file pcap;
+static const char *pcap_file = "debug.server.pcap";
+static ssh_pcap_file pcap;
static void set_pcap(ssh_session session){
if(!pcap_file)
@@ -52,7 +52,7 @@ static void set_pcap(ssh_session session){
ssh_set_pcap_file(session,pcap);
}
-static void cleanup_pcap(){
+static void cleanup_pcap(void) {
ssh_pcap_file_free(pcap);
pcap=NULL;
}
@@ -172,10 +172,10 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state) {
static struct argp argp = {options, parse_opt, args_doc, doc, NULL, NULL, NULL};
#endif /* HAVE_ARGP_H */
-const char *name;
-const char *instruction;
-const char *prompts[2];
-char echo[] = { 1, 0 };
+static const char *name;
+static const char *instruction;
+static const char *prompts[2];
+static char echo[] = { 1, 0 };
static int kbdint_check_response(ssh_session session) {
int count;