diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-04 09:43:10 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-04 09:43:10 +0000 |
commit | c303b97bd731aef372ec24ebe8b47ee014ada23b (patch) | |
tree | aa287d7443434a9147cfb08fe0caa12e9c8de9e4 /src/hello/gnunet-hello.c | |
parent | ed18131bd038617c03e0b3b83e3eb56c31dc3e4a (diff) | |
download | gnunet-c303b97bd731aef372ec24ebe8b47ee014ada23b.tar.gz gnunet-c303b97bd731aef372ec24ebe8b47ee014ada23b.zip |
changes for mantis 0002676
Diffstat (limited to 'src/hello/gnunet-hello.c')
-rw-r--r-- | src/hello/gnunet-hello.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/hello/gnunet-hello.c b/src/hello/gnunet-hello.c index b20279c1d..816a89936 100644 --- a/src/hello/gnunet-hello.c +++ b/src/hello/gnunet-hello.c | |||
@@ -110,7 +110,6 @@ main (int argc, char *argv[]) | |||
110 | struct GNUNET_HELLO_Message *result; | 110 | struct GNUNET_HELLO_Message *result; |
111 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pk; | 111 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pk; |
112 | uint64_t fsize; | 112 | uint64_t fsize; |
113 | int friend_only; | ||
114 | 113 | ||
115 | GNUNET_log_setup ("gnunet-hello", "INFO", NULL); | 114 | GNUNET_log_setup ("gnunet-hello", "INFO", NULL); |
116 | if (argc != 2) | 115 | if (argc != 2) |
@@ -168,12 +167,8 @@ main (int argc, char *argv[]) | |||
168 | argv[1]); | 167 | argv[1]); |
169 | return 1; | 168 | return 1; |
170 | } | 169 | } |
171 | friend_only = GNUNET_NO; | 170 | result = GNUNET_HELLO_create (&pk, &add_from_hello, &orig, |
172 | if (GNUNET_MESSAGE_TYPE_HELLO == GNUNET_HELLO_get_type (orig)) | 171 | GNUNET_HELLO_is_friend_only (orig)); |
173 | friend_only = GNUNET_NO; | ||
174 | if (GNUNET_MESSAGE_TYPE_FRIEND_HELLO == GNUNET_HELLO_get_type (orig)) | ||
175 | friend_only = GNUNET_YES; | ||
176 | result = GNUNET_HELLO_create (&pk, &add_from_hello, &orig, friend_only); | ||
177 | GNUNET_assert (NULL != result); | 172 | GNUNET_assert (NULL != result); |
178 | fh = GNUNET_DISK_file_open (argv[1], | 173 | fh = GNUNET_DISK_file_open (argv[1], |
179 | GNUNET_DISK_OPEN_WRITE, | 174 | GNUNET_DISK_OPEN_WRITE, |