gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r31888 - in gnunet/src: hello include


From: gnunet
Subject: [GNUnet-SVN] r31888 - in gnunet/src: hello include
Date: Mon, 13 Jan 2014 20:47:51 +0100

Author: bartpolot
Date: 2014-01-13 20:47:51 +0100 (Mon, 13 Jan 2014)
New Revision: 31888

Modified:
   gnunet/src/hello/address.c
   gnunet/src/include/gnunet_hello_lib.h
Log:
- fix compilation


Modified: gnunet/src/hello/address.c
===================================================================
--- gnunet/src/hello/address.c  2014-01-13 19:33:49 UTC (rev 31887)
+++ gnunet/src/hello/address.c  2014-01-13 19:47:51 UTC (rev 31888)
@@ -29,6 +29,20 @@
 
 
 /**
+ * Get the size of an address struct.
+ *
+ * @param address address
+ * @return the size
+ */
+size_t
+GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address * address)
+{
+  return sizeof (struct GNUNET_HELLO_Address) + address->address_length +
+        strlen (address->transport_name) + 1;
+}
+
+
+/**
  * Allocate an address struct.
  *
  * @param peer the peer
@@ -64,20 +78,6 @@
 
 
 /**
- * Get the size of an address struct.
- *
- * @param address address
- * @return the size
- */
-size_t
-GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address * address)
-{
-  return sizeof (struct GNUNET_HELLO_Address) + address->address_length +
-      strlen (address->transport_name) + 1;
-}
-
-
-/**
  * Copy an address struct.
  *
  * @param address address to copy

Modified: gnunet/src/include/gnunet_hello_lib.h
===================================================================
--- gnunet/src/include/gnunet_hello_lib.h       2014-01-13 19:33:49 UTC (rev 
31887)
+++ gnunet/src/include/gnunet_hello_lib.h       2014-01-13 19:47:51 UTC (rev 
31888)
@@ -114,7 +114,6 @@
 
 };
 
-
 /**
  * Allocate an address struct.
  *
@@ -122,14 +121,12 @@
  * @param transport_name plugin name
  * @param address binary address
  * @param address_length number of bytes in 'address'
- * @param local_info additional address information, will not get serialized
  * @return the address struct
  */
 struct GNUNET_HELLO_Address *
 GNUNET_HELLO_address_allocate (const struct GNUNET_PeerIdentity *peer,
                                const char *transport_name, const void *address,
-                               size_t address_length,
-                               enum GNUNET_HELLO_AddressInfo local_info);
+                               size_t address_length);
 
 
 /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]