mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-31 16:21:13 +03:00
examples: Reformat usage() function
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
e9aebb1198
commit
fa2332354b
@ -76,8 +76,10 @@ static void add_cmd(char *cmd){
|
|||||||
cmds[n]=strdup(cmd);
|
cmds[n]=strdup(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usage(){
|
static void usage(void)
|
||||||
fprintf(stderr,"Usage : ssh [options] [login@]hostname\n"
|
{
|
||||||
|
fprintf(stderr,
|
||||||
|
"Usage : ssh [options] [login@]hostname\n"
|
||||||
"sample client - libssh-%s\n"
|
"sample client - libssh-%s\n"
|
||||||
"Options :\n"
|
"Options :\n"
|
||||||
" -l user : log in as user\n"
|
" -l user : log in as user\n"
|
||||||
@ -90,8 +92,9 @@ static void usage(){
|
|||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
" -T proxycommand : command to execute as a socket proxy\n"
|
" -T proxycommand : command to execute as a socket proxy\n"
|
||||||
#endif
|
#endif
|
||||||
,
|
"\n",
|
||||||
ssh_version(0));
|
ssh_version(0));
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user