- verboser log, faster start
[oweals/gnunet.git] / src / hello / gnunet-hello.c
index d64833b4280d6fe5edd235439226add0f4ed1da6..fa250d7a15e9c5fe71a5429c151e739f12047462 100644 (file)
 #include "platform.h"
 #include "gnunet_hello_lib.h"
 
-#define DEBUG GNUNET_EXTRA_LOGGING
-
-#define VERBOSE GNUNET_NO
-
 /**
  * Closure for 'add_to_buf'.
  */
@@ -111,7 +107,7 @@ main (int argc, char *argv[])
   struct GNUNET_DISK_FileHandle *fh;
   struct GNUNET_HELLO_Message *orig;
   struct GNUNET_HELLO_Message *result;
-  struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pk;
+  struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pk;
   uint64_t fsize;
 
   GNUNET_log_setup ("gnunet-hello", "INFO", NULL);
@@ -122,7 +118,7 @@ main (int argc, char *argv[])
             _("Call with name of HELLO file to modify.\n"));
     return 1;
   }
-  if (GNUNET_OK != GNUNET_DISK_file_size (argv[1], &fsize, GNUNET_YES))
+  if (GNUNET_OK != GNUNET_DISK_file_size (argv[1], &fsize, GNUNET_YES, GNUNET_YES))
   {
     FPRINTF (stderr,
             _("Error accessing file `%s': %s\n"),
@@ -156,7 +152,7 @@ main (int argc, char *argv[])
     return 1;
   }
   {
-    char buf[fsize];
+    char buf[fsize] GNUNET_ALIGN;
     
     GNUNET_assert (fsize == 
                   GNUNET_DISK_file_read (fh, buf, fsize));