aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-08-25 10:05:34 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-25 10:06:00 +0200
commit2e70077bbccc038df8debf3f297da7b8818ba5fc (patch)
tree0343e6a285e8eeb91d47715c2ab992a77de77941
parent2493e962fe9c580a8690e03b1e1635bd9f6c961a (diff)
downloadlibssh-2e70077bbccc038df8debf3f297da7b8818ba5fc.tar.gz
libssh-2e70077bbccc038df8debf3f297da7b8818ba5fc.tar.xz
libssh-2e70077bbccc038df8debf3f297da7b8818ba5fc.zip
examples: Fix fallthrough compiler warnings
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--examples/knownhosts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/knownhosts.c b/examples/knownhosts.c
index cbca7e0c..d06969f7 100644
--- a/examples/knownhosts.c
+++ b/examples/knownhosts.c
@@ -17,11 +17,14 @@ The goal is to show the API in action. It's not a reference on how terminal
clients must be made or how a client should react.
*/
+#include "config.h"
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "libssh/priv.h"
#include <libssh/libssh.h>
#include "examples_common.h"
@@ -73,6 +76,7 @@ int verify_knownhost(ssh_session session){
fprintf(stderr,"Could not find known host file. If you accept the host key here,\n");
fprintf(stderr,"the file will be automatically created.\n");
/* fallback to SSH_SERVER_NOT_KNOWN behavior */
+ FALL_THROUGH;
case SSH_SERVER_NOT_KNOWN:
hexa = ssh_get_hexa(hash, hlen);
fprintf(stderr,"The server is unknown. Do you trust the host key ?\n");