From cd76ea7b25ac497f523061874261af542bda6191 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 4 Mar 2012 14:38:28 +0000 Subject: [PATCH] -fix --- src/util/gnunet-rsa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/gnunet-rsa.c b/src/util/gnunet-rsa.c index ba0d16a74..2dd1f376f 100644 --- a/src/util/gnunet-rsa.c +++ b/src/util/gnunet-rsa.c @@ -25,7 +25,6 @@ */ #include "platform.h" #include "gnunet_util_lib.h" -#include "gnunet_rsa_service.h" /** @@ -50,12 +49,12 @@ run (void *cls, char *const *args, const char *cfgfile, struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub; char *s; - if (argc == 0) + if (NULL == args[0]) { fprintf (stderr, _("No hostkey file specified on command line\n")); return; } - pk = GNUNET_CRYPTO_rsa_key_create_from_file (argv[0]); + pk = GNUNET_CRYPTO_rsa_key_create_from_file (args[0]); if (print) { GNUNET_CRYPTO_rsa_key_get_public (pk, &pub); -- 2.25.1