diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-06-30 14:00:07 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-30 14:37:04 +0200 |
commit | 8917b8484059691bd0b013516ab909eef0869d5d (patch) | |
tree | 177bebde909e0dd1b0c3f80e9dc5f8a11e730398 | |
parent | 4b0fd10a99a5901e3f58eb578d54b43835d71869 (diff) | |
download | libssh-8917b8484059691bd0b013516ab909eef0869d5d.tar.gz libssh-8917b8484059691bd0b013516ab909eef0869d5d.tar.xz libssh-8917b8484059691bd0b013516ab909eef0869d5d.zip |
examples: Make gobal variables static in scp_download
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | examples/scp_download.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/scp_download.c b/examples/scp_download.c index ba8782a7..85ccf92b 100644 --- a/examples/scp_download.c +++ b/examples/scp_download.c @@ -22,9 +22,12 @@ program. #include <libssh/libssh.h> #include "examples_common.h" -int verbosity=0; -const char *createcommand="rm -fr /tmp/libssh_tests && mkdir /tmp/libssh_tests && cd /tmp/libssh_tests && date > a && date > b && mkdir c && date > d"; -char *host=NULL; +static int verbosity = 0; +static const char *createcommand = + "rm -fr /tmp/libssh_tests && mkdir /tmp/libssh_tests && " + "cd /tmp/libssh_tests && date > a && date > b && mkdir c && date > d"; +static char *host = NULL; + static void usage(const char *argv0){ fprintf(stderr,"Usage : %s [options] host\n" "sample tiny scp downloader client - libssh-%s\n" |