diff options
author | Bruno Cabral <bcabral@uw.edu> | 2014-03-30 13:42:47 +0000 |
---|---|---|
committer | Bruno Cabral <bcabral@uw.edu> | 2014-03-30 13:42:47 +0000 |
commit | c20cf66237cb0e1b608427fd95ce95a13f6ebeb4 (patch) | |
tree | bd3405f558c74b2df19722c2ba0679b0d20c3f4a /src/topology | |
parent | e63b1859b1c284193b8a12221001d48069079b2c (diff) | |
download | gnunet-c20cf66237cb0e1b608427fd95ce95a13f6ebeb4.tar.gz gnunet-c20cf66237cb0e1b608427fd95ce95a13f6ebeb4.zip |
friend is a reserved work in C++. Rename to friend_id.
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/friends.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/topology/friends.c b/src/topology/friends.c index f79ee77ca..348123fe6 100644 --- a/src/topology/friends.c +++ b/src/topology/friends.c | |||
@@ -194,18 +194,18 @@ GNUNET_FRIENDS_write_stop (struct GNUNET_FRIENDS_Writer *w) | |||
194 | * Add a friend to the friends file. | 194 | * Add a friend to the friends file. |
195 | * | 195 | * |
196 | * @param w write handle | 196 | * @param w write handle |
197 | * @param friend friend to add | 197 | * @param friend_id friend to add |
198 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error | 198 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
199 | */ | 199 | */ |
200 | int | 200 | int |
201 | GNUNET_FRIENDS_write (struct GNUNET_FRIENDS_Writer *w, | 201 | GNUNET_FRIENDS_write (struct GNUNET_FRIENDS_Writer *w, |
202 | const struct GNUNET_PeerIdentity *friend) | 202 | const struct GNUNET_PeerIdentity *friend_id) |
203 | { | 203 | { |
204 | char *buf; | 204 | char *buf; |
205 | char *ret; | 205 | char *ret; |
206 | size_t slen; | 206 | size_t slen; |
207 | 207 | ||
208 | ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&friend->public_key); | 208 | ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&friend_id->public_key); |
209 | GNUNET_asprintf (&buf, | 209 | GNUNET_asprintf (&buf, |
210 | "%s\n", | 210 | "%s\n", |
211 | ret); | 211 | ret); |