-fixing #2546
[oweals/gnunet.git] / src / hello / gnunet-hello.c
index be7719e945bd9e0d52687b9bc01a229ab629a78a..bc35cdd3214c63ed7417e98138d9c0d5198587f5 100644 (file)
@@ -54,7 +54,7 @@ struct AddContext
 /**
  * Add the given address with infinit expiration to the buffer.
  *
- * @param ac add context
+ * @param cls closure
  * @param address address to add
  * @param expiration old expiration
  * @return GNUNET_OK keep iterating
@@ -122,7 +122,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 +156,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));