diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2012-02-18 12:28:03 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-02-19 13:26:02 +0100 |
commit | 29ad0d19f916b5ee1a41db1b0a973cfc79472d2a (patch) | |
tree | 6096aeadce516008c47784991dac5079b789d11e | |
parent | c31004442a1cfa01323eb1e347f2ebab46ec166b (diff) | |
download | libssh-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/samplesftp.c b/examples/samplesftp.c index f25e36c3..968624e8 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); |