diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-28 12:55:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-28 12:55:06 +0000 |
commit | a8be4b3a2a8b62d47dcc784d546d83935e321d33 (patch) | |
tree | e13e0f23b284641537d89822f6f016d2481c654e | |
parent | f30c18d8704220a52337bfe80d8a794b2d609700 (diff) | |
download | gnunet-a8be4b3a2a8b62d47dcc784d546d83935e321d33.tar.gz gnunet-a8be4b3a2a8b62d47dcc784d546d83935e321d33.zip |
-fix use of const
-rw-r--r-- | src/chat/gnunet-service-chat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chat/gnunet-service-chat.c b/src/chat/gnunet-service-chat.c index a20c8cf32..580851557 100644 --- a/src/chat/gnunet-service-chat.c +++ b/src/chat/gnunet-service-chat.c | |||
@@ -135,7 +135,7 @@ static const struct GNUNET_CONFIGURATION_Handle *cfg; | |||
135 | /** | 135 | /** |
136 | * The identity of this host. | 136 | * The identity of this host. |
137 | */ | 137 | */ |
138 | static const struct GNUNET_PeerIdentity *me; | 138 | static struct GNUNET_PeerIdentity me; |
139 | 139 | ||
140 | /** | 140 | /** |
141 | * Head of the list of current clients. | 141 | * Head of the list of current clients. |
@@ -1530,7 +1530,7 @@ peer_connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
1530 | struct ConnectedPeer *cp; | 1530 | struct ConnectedPeer *cp; |
1531 | struct GNUNET_CORE_TransmitHandle *th; | 1531 | struct GNUNET_CORE_TransmitHandle *th; |
1532 | 1532 | ||
1533 | if (0 == memcmp (peer, me, sizeof (struct GNUNET_PeerIdentity))) | 1533 | if (0 == memcmp (peer, &me, sizeof (struct GNUNET_PeerIdentity))) |
1534 | return; | 1534 | return; |
1535 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Peer connected: %s\n", | 1535 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Peer connected: %s\n", |
1536 | GNUNET_i2s (peer)); | 1536 | GNUNET_i2s (peer)); |
@@ -1591,7 +1591,7 @@ static void | |||
1591 | peer_disconnect_handler (void *cls, const struct GNUNET_PeerIdentity *peer) | 1591 | peer_disconnect_handler (void *cls, const struct GNUNET_PeerIdentity *peer) |
1592 | { | 1592 | { |
1593 | 1593 | ||
1594 | if (0 == memcmp (peer, me, sizeof (struct GNUNET_PeerIdentity))) | 1594 | if (0 == memcmp (peer, &me, sizeof (struct GNUNET_PeerIdentity))) |
1595 | return; | 1595 | return; |
1596 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Peer disconnected: %s\n", | 1596 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Peer disconnected: %s\n", |
1597 | GNUNET_i2s (peer)); | 1597 | GNUNET_i2s (peer)); |
@@ -1654,7 +1654,7 @@ core_init (void *cls, struct GNUNET_CORE_Handle *server, | |||
1654 | const struct GNUNET_PeerIdentity *my_identity) | 1654 | const struct GNUNET_PeerIdentity *my_identity) |
1655 | { | 1655 | { |
1656 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Core initialized\n"); | 1656 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Core initialized\n"); |
1657 | me = my_identity; | 1657 | me = *my_identity; |
1658 | } | 1658 | } |
1659 | 1659 | ||
1660 | 1660 | ||