X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fhello%2Fgnunet-hello.c;h=bc35cdd3214c63ed7417e98138d9c0d5198587f5;hb=f736b24935d66733e9a53798fbc87dbc8aff9fca;hp=be7719e945bd9e0d52687b9bc01a229ab629a78a;hpb=1bf2b49b14f9058cd2d4223752c74ef59bbf3435;p=oweals%2Fgnunet.git diff --git a/src/hello/gnunet-hello.c b/src/hello/gnunet-hello.c index be7719e94..bc35cdd32 100644 --- a/src/hello/gnunet-hello.c +++ b/src/hello/gnunet-hello.c @@ -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));