aboutsummaryrefslogtreecommitdiff
path: root/examples/sshnetcat.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-08-20 15:31:51 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-20 18:42:03 +0200
commit1d9f548204262c272091cef8db2e080707994731 (patch)
treed2b0add024f70106a3a73ed4608c5777877bbca5 /examples/sshnetcat.c
parentdad456a1ee613a2d6f3d981046dba7604b1c133f (diff)
downloadlibssh-1d9f548204262c272091cef8db2e080707994731.tar.gz
libssh-1d9f548204262c272091cef8db2e080707994731.tar.xz
libssh-1d9f548204262c272091cef8db2e080707994731.zip
examples: Fix function declaration in sshnetcat
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'examples/sshnetcat.c')
-rw-r--r--examples/sshnetcat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/sshnetcat.c b/examples/sshnetcat.c
index 8ac5a212..28fb2765 100644
--- a/examples/sshnetcat.c
+++ b/examples/sshnetcat.c
@@ -43,7 +43,8 @@ const char *port="22";
char *pcap_file=NULL;
#endif
-static void usage(){
+static void usage(void)
+{
fprintf(stderr,"Usage : sshnetcat [user@]host forwarded_host forwarded_port\n");
exit(1);
}