[haiku-commits] r38023 - haiku/trunk/src/kits/network/libnetapi

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 11 Aug 2010 15:18:04 +0200 (CEST)

Author: axeld
Date: 2010-08-11 15:18:03 +0200 (Wed, 11 Aug 2010)
New Revision: 38023
Changeset: http://dev.haiku-os.org/changeset/38023

Modified:
   haiku/trunk/src/kits/network/libnetapi/NetworkAddress.cpp
Log:
* Forgot to implement the sockaddr* cast operator.


Modified: haiku/trunk/src/kits/network/libnetapi/NetworkAddress.cpp
===================================================================
--- haiku/trunk/src/kits/network/libnetapi/NetworkAddress.cpp   2010-08-11 
12:45:48 UTC (rev 38022)
+++ haiku/trunk/src/kits/network/libnetapi/NetworkAddress.cpp   2010-08-11 
13:18:03 UTC (rev 38023)
@@ -975,3 +975,9 @@
 
        return Port() < other.Port();
 }
+
+
+BNetworkAddress::operator sockaddr*() const
+{
+       return (sockaddr*)&fAddress;
+}


Other related posts:

  • » [haiku-commits] r38023 - haiku/trunk/src/kits/network/libnetapi - axeld