aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns-proxy.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-04 19:00:10 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-04 19:00:10 +0200
commit41cbe10b783a0741c75566232886f262cd779fbb (patch)
tree044c6277532cd0ade440915982a86745623da7a5 /src/gns/gnunet-gns-proxy.c
parentfdf5283f5d5d603217748232941bafb60728aeb2 (diff)
downloadgnunet-41cbe10b783a0741c75566232886f262cd779fbb.tar.gz
gnunet-41cbe10b783a0741c75566232886f262cd779fbb.zip
add function for getopt uint16_t arguments
Diffstat (limited to 'src/gns/gnunet-gns-proxy.c')
-rw-r--r--src/gns/gnunet-gns-proxy.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index 02ebcf0f1..0d7d83b4b 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -636,7 +636,7 @@ struct Socks5Request
636/** 636/**
637 * The port the proxy is running on (default 7777) 637 * The port the proxy is running on (default 7777)
638 */ 638 */
639static unsigned long long port = GNUNET_GNS_PROXY_PORT; 639static uint16_t port = GNUNET_GNS_PROXY_PORT;
640 640
641/** 641/**
642 * The CA file (pem) to use for the proxy CA 642 * The CA file (pem) to use for the proxy CA
@@ -3399,8 +3399,8 @@ run (void *cls,
3399 return; 3399 return;
3400 } 3400 }
3401 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3401 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3402 "Proxy listens on port %llu\n", 3402 "Proxy listens on port %u\n",
3403 port); 3403 (unsigned int) port);
3404 3404
3405 /* start MHD daemon for HTTP */ 3405 /* start MHD daemon for HTTP */
3406 hd = GNUNET_new (struct MhdHttpList); 3406 hd = GNUNET_new (struct MhdHttpList);
@@ -3437,11 +3437,11 @@ int
3437main (int argc, char *const *argv) 3437main (int argc, char *const *argv)
3438{ 3438{
3439 struct GNUNET_GETOPT_CommandLineOption options[] = { 3439 struct GNUNET_GETOPT_CommandLineOption options[] = {
3440 GNUNET_GETOPT_option_ulong ('p', 3440 GNUNET_GETOPT_option_uint16 ('p',
3441 "port", 3441 "port",
3442 NULL, 3442 NULL,
3443 gettext_noop ("listen on specified port (default: 7777)"), 3443 gettext_noop ("listen on specified port (default: 7777)"),
3444 &port), 3444 &port),
3445 GNUNET_GETOPT_option_string ('a', 3445 GNUNET_GETOPT_option_string ('a',
3446 "authority", 3446 "authority",
3447 NULL, 3447 NULL,