From 29ad0d19f916b5ee1a41db1b0a973cfc79472d2a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 18 Feb 2012 12:28:03 +0100 Subject: [PATCH] examples: Make variables static in scp example. Fixes sparse warnings. --- examples/samplesftp.c | 5 +++-- 1 file 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);