-fix off-by-1
[oweals/gnunet.git] / src / dht / gnunet-service-dht_hello.c
index d3415d11d9676b461542a96fd2a3d7f3e7760c43..0e7e4dec5c72c1ad8d8d2ed2f843555311fedce4 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2011 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2011 GNUnet e.V.
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
      You should have received a copy of the GNU General Public License
      along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 
 /**
@@ -65,6 +65,8 @@ GDS_HELLO_get (const struct GNUNET_PeerIdentity *peer)
  * @param peer id of the peer, NULL for last call
  * @param hello hello message for the peer (can be NULL)
  * @param err_msg error message (not used)
+ *
+ * FIXME this is called once per address. Merge instead of replacing?
  */
 static void
 process_hello (void *cls, const struct GNUNET_PeerIdentity *peer,
@@ -107,8 +109,8 @@ GDS_HELLO_init ()
  * Free memory occopied by the HELLO.
  */
 static int
-free_hello (void *cls, 
-           const struct GNUNET_PeerIdentity *key, 
+free_hello (void *cls,
+           const struct GNUNET_PeerIdentity *key,
            void *hello)
 {
   GNUNET_free (hello);