[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24101 - gnunet/src/chat
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24101 - gnunet/src/chat |
Date: |
Fri, 28 Sep 2012 14:55:06 +0200 |
Author: grothoff
Date: 2012-09-28 14:55:06 +0200 (Fri, 28 Sep 2012)
New Revision: 24101
Modified:
gnunet/src/chat/gnunet-service-chat.c
Log:
-fix use of const
Modified: gnunet/src/chat/gnunet-service-chat.c
===================================================================
--- gnunet/src/chat/gnunet-service-chat.c 2012-09-28 12:46:48 UTC (rev
24100)
+++ gnunet/src/chat/gnunet-service-chat.c 2012-09-28 12:55:06 UTC (rev
24101)
@@ -135,7 +135,7 @@
/**
* The identity of this host.
*/
-static const struct GNUNET_PeerIdentity *me;
+static struct GNUNET_PeerIdentity me;
/**
* Head of the list of current clients.
@@ -1530,7 +1530,7 @@
struct ConnectedPeer *cp;
struct GNUNET_CORE_TransmitHandle *th;
- if (0 == memcmp (peer, me, sizeof (struct GNUNET_PeerIdentity)))
+ if (0 == memcmp (peer, &me, sizeof (struct GNUNET_PeerIdentity)))
return;
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Peer connected: %s\n",
GNUNET_i2s (peer));
@@ -1591,7 +1591,7 @@
peer_disconnect_handler (void *cls, const struct GNUNET_PeerIdentity *peer)
{
- if (0 == memcmp (peer, me, sizeof (struct GNUNET_PeerIdentity)))
+ if (0 == memcmp (peer, &me, sizeof (struct GNUNET_PeerIdentity)))
return;
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Peer disconnected: %s\n",
GNUNET_i2s (peer));
@@ -1654,7 +1654,7 @@
const struct GNUNET_PeerIdentity *my_identity)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Core initialized\n");
- me = my_identity;
+ me = *my_identity;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24101 - gnunet/src/chat,
gnunet <=