From 8917b8484059691bd0b013516ab909eef0869d5d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 30 Jun 2018 14:00:07 +0200 Subject: [PATCH] examples: Make gobal variables static in scp_download Signed-off-by: Andreas Schneider --- examples/scp_download.c | 9 ++++++--- 1 file 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 #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"