aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-22 08:44:57 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-22 10:42:30 +0200
commit2c9808daf844e57634ce3d0aa2e22e21b4e14da6 (patch)
treeca39bf6a70f0fb3f3aa42bd0435c1ebd65e5b621
parent5e7b15e2c15e39899b9be5a2e25461d003f88b07 (diff)
downloadlibssh-2c9808daf844e57634ce3d0aa2e22e21b4e14da6.tar.gz
libssh-2c9808daf844e57634ce3d0aa2e22e21b4e14da6.tar.xz
libssh-2c9808daf844e57634ce3d0aa2e22e21b4e14da6.zip
example: Fix location of port definition.
It shouldn't be inside #ifdef HAVE_ARGP.
-rw-r--r--examples/samplesshd-kbdint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/samplesshd-kbdint.c b/examples/samplesshd-kbdint.c
index faecfd9b..5c2c461e 100644
--- a/examples/samplesshd-kbdint.c
+++ b/examples/samplesshd-kbdint.c
@@ -35,6 +35,8 @@ clients must be made or how a client should react.
#endif
#endif
+static int port = 22;
+
#ifdef WITH_PCAP
static const char *pcap_file = "debug.server.pcap";
static ssh_pcap_file pcap;
@@ -77,8 +79,6 @@ static char doc[] = "libssh -- a Secure Shell protocol implementation";
/* A description of the arguments we accept. */
static char args_doc[] = "BINDADDR";
-static int port = 22;
-
/* The options we understand. */
static struct argp_option options[] = {
{