From 541d0d25a1ce13b0bd1b4dcf7cb482d024cb27bd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 20 Sep 2012 10:57:31 +0000 Subject: -fix segv --- src/gns/gnunet-gns-proxy.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index bf1d9f27d..23427d3f1 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -17,22 +17,18 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - #include "platform.h" -#include -#include #include #include -#include -#include "gns_proxy_proto.h" -#include "gns.h" - -/** SSL **/ #include #include #include #include -#include +#include +#include "gnunet_util_lib.h" +#include "gnunet_gns_service.h" +#include "gns_proxy_proto.h" +#include "gns.h" #define HAVE_MHD_NO_LISTEN_SOCKET MHD_VERSION >= 0x00091401 @@ -3589,8 +3585,8 @@ main (int argc, char *const *argv) { static const struct GNUNET_GETOPT_CommandLineOption options[] = { {'p', "port", NULL, - gettext_noop ("listen on specified port"), 1, - &GNUNET_GETOPT_set_string, &port}, + gettext_noop ("listen on specified port (default: 7777)"), 1, + &GNUNET_GETOPT_set_ulong, &port}, {'a', "authority", NULL, gettext_noop ("pem file to use as CA"), 1, &GNUNET_GETOPT_set_string, &cafile_opt}, -- cgit v1.2.3