aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-18 12:28:03 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-19 13:26:02 +0100
commit29ad0d19f916b5ee1a41db1b0a973cfc79472d2a (patch)
tree6096aeadce516008c47784991dac5079b789d11e
parentc31004442a1cfa01323eb1e347f2ebab46ec166b (diff)
downloadlibssh-29ad0d19f916b5ee1a41db1b0a973cfc79472d2a.tar.gz
libssh-29ad0d19f916b5ee1a41db1b0a973cfc79472d2a.tar.xz
libssh-29ad0d19f916b5ee1a41db1b0a973cfc79472d2a.zip
examples: Make variables static in scp example.
Fixes sparse warnings.
-rw-r--r--examples/samplesftp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/samplesftp.c b/examples/samplesftp.c
index f25e36c..968624e 100644
--- a/examples/samplesftp.c
+++ b/examples/samplesftp.c
@@ -27,8 +27,9 @@ clients must be made or how a client should react.
#include "examples_common.h"
#ifdef WITH_SFTP
-int verbosity;
-char *destination;
+static int verbosity;
+static char *destination;
+
#define DATALEN 65536
static void do_sftp(ssh_session session){
sftp_session sftp=sftp_new(session);