diff --git a/examples/ssh_client.c b/examples/ssh_client.c index 7e9e4eb4..229984c0 100644 --- a/examples/ssh_client.c +++ b/examples/ssh_client.c @@ -39,8 +39,6 @@ #include #include -#include - #include "examples_common.h" #define MAXCMD 10 @@ -112,8 +110,8 @@ static int opts(int argc, char **argv) { int i; - while((i = getopt(argc,argv,"T:P:F:")) != -1) { - switch(i){ + while ((i = getopt(argc, argv, "T:P:F:")) != -1) { + switch (i) { case 'P': pcap_file = optarg; break; @@ -159,16 +157,14 @@ static void cfmakeraw(struct termios *termios_p) static void do_cleanup(int i) { - /* unused variable */ - (void) i; + (void)i; - tcsetattr(0, TCSANOW, &terminal); + tcsetattr(0, TCSANOW, &terminal); } static void do_exit(int i) { - /* unused variable */ - (void) i; + (void)i; do_cleanup(0); exit(0); @@ -179,7 +175,7 @@ static int signal_delayed = 0; #ifdef SIGWINCH static void sigwindowchanged(int i) { - (void) i; + (void)i; signal_delayed = 1; } #endif @@ -253,7 +249,7 @@ static void shell(ssh_session session) { ssh_channel channel = NULL; struct termios terminal_local; - int interactive=isatty(0); + int interactive = isatty(0); channel = ssh_channel_new(session); if (channel == NULL) {