diff options
author | Julius Bünger <buenger@mytum.de> | 2019-04-26 05:56:54 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2019-04-26 05:56:54 +0200 |
commit | f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e (patch) | |
tree | 94055d2c049a65b5ab6c61fd3c5867fe49f6f429 /src/hostlist | |
parent | a097690795f4f814de7cdbc97ef95fb899eeacd3 (diff) | |
download | gnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.tar.gz gnunet-f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e.zip |
memcmp() -> GNUNET_memcmp(), first take
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index 478776128..760d5f543 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c | |||
@@ -201,9 +201,8 @@ connect_handler (void *cls, | |||
201 | const struct GNUNET_PeerIdentity *peer, | 201 | const struct GNUNET_PeerIdentity *peer, |
202 | struct GNUNET_MQ_Handle *mq) | 202 | struct GNUNET_MQ_Handle *mq) |
203 | { | 203 | { |
204 | if (0 == memcmp (&me, | 204 | if (0 == GNUNET_memcmp (&me, |
205 | peer, | 205 | peer)) |
206 | sizeof (struct GNUNET_PeerIdentity))) | ||
207 | return NULL; | 206 | return NULL; |
208 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 207 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
209 | "A new peer connected, notifying client and server\n"); | 208 | "A new peer connected, notifying client and server\n"); |
@@ -235,9 +234,8 @@ disconnect_handler (void *cls, | |||
235 | const struct GNUNET_PeerIdentity *peer, | 234 | const struct GNUNET_PeerIdentity *peer, |
236 | void *internal_cls) | 235 | void *internal_cls) |
237 | { | 236 | { |
238 | if (0 == memcmp (&me, | 237 | if (0 == GNUNET_memcmp (&me, |
239 | peer, | 238 | peer)) |
240 | sizeof (struct GNUNET_PeerIdentity))) | ||
241 | return; | 239 | return; |
242 | /* call hostlist client disconnect handler */ | 240 | /* call hostlist client disconnect handler */ |
243 | if (NULL != client_dh) | 241 | if (NULL != client_dh) |