projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
indentation fixes
[oweals/gnunet.git]
/
src
/
hello
/
gnunet-hello.c
diff --git
a/src/hello/gnunet-hello.c
b/src/hello/gnunet-hello.c
index 62977b04a1e0ddb5e93e0f7fa4c85607b1cb88c3..6fd5756ba96c6d82259431d53cab7cea8311457a 100644
(file)
--- a/
src/hello/gnunet-hello.c
+++ b/
src/hello/gnunet-hello.c
@@
-1,6
+1,6
@@
/*
This file is part of GNUnet
/*
This file is part of GNUnet
- Copyright (C) 2012
Christian Grothoff (and other contributing authors)
+ Copyright (C) 2012
GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@
-27,7
+27,7
@@
#include "gnunet_hello_lib.h"
/**
#include "gnunet_hello_lib.h"
/**
- * Closure for
'add_to_buf'
.
+ * Closure for
#add_to_buf()
.
*/
struct AddContext
{
*/
struct AddContext
{
@@
-190,7
+190,7
@@
main (int argc, char *argv[])
GNUNET_HELLO_is_friend_only (orig));
GNUNET_assert (NULL != result);
fh = GNUNET_DISK_file_open (argv[1],
GNUNET_HELLO_is_friend_only (orig));
GNUNET_assert (NULL != result);
fh = GNUNET_DISK_file_open (argv[1],
- GNUNET_DISK_OPEN_WRITE,
+ GNUNET_DISK_OPEN_WRITE
| GNUNET_DISK_OPEN_TRUNCATE
,
GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE);
if (NULL == fh)
{
GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE);
if (NULL == fh)
{
@@
-215,7
+215,10
@@
main (int argc, char *argv[])
}
GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh));
}
}
GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh));
}
- FPRINTF (stderr, _("Modified %u addresses \n"), address_count);
+ FPRINTF (stderr,
+ _("Modified %u addresses, wrote %u bytes\n"),
+ address_count,
+ (unsigned int) fsize);
return 0;
}
return 0;
}