[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "nat-traversal" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed May 18 12:03:11 CDT 2011


branch "nat-traversal" has been updated
       via  4f82079337691e0f7c11764aba6dbb45fa806ebc (commit)
      from  313131c3971fc79e9003c7f1555da0642d6eeb34 (commit)

Summary of changes:
 include/AsteriskSCF/Helpers/Network.h |    6 +++---
 src/Helpers/Network.cpp               |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 4f82079337691e0f7c11764aba6dbb45fa806ebc
Author: Brent Eagles <beagles at digium.com>
Date:   Wed May 18 14:32:52 2011 -0230

    Fix build gcc build errors.

diff --git a/include/AsteriskSCF/Helpers/Network.h b/include/AsteriskSCF/Helpers/Network.h
index 4a27dc5..d67ae61 100644
--- a/include/AsteriskSCF/Helpers/Network.h
+++ b/include/AsteriskSCF/Helpers/Network.h
@@ -40,17 +40,17 @@ class ASTERISK_SCF_ICEBOX_EXPORT Address
     void operator=(const Address&);
 public:
 
-    Address(const std::string& hostname, int port);
+    Address(const std::string& hostname, unsigned port);
     Address(const Address&);
 
-    int port() const;
+    unsigned port() const;
     std::string hostname() const;
 
     bool isIPV6();
     
 private:
     std::string mHostname;
-    int mPort;
+    unsigned mPort;
 
     bool mIsIPV6;
 };
diff --git a/src/Helpers/Network.cpp b/src/Helpers/Network.cpp
index abc5d7e..fe5aa57 100644
--- a/src/Helpers/Network.cpp
+++ b/src/Helpers/Network.cpp
@@ -22,15 +22,15 @@ using namespace std;
 using namespace AsteriskSCF::Helpers;
 using namespace boost::asio::ip;
 
-Address::Address(const string& host, int port) :
+Address::Address(const string& host, unsigned p) :
     mHostname(host),
-    mPort(port)
+    mPort(p)
 {
     address a(address::from_string(host));
     mIsIPV6 = a.is_v6();
 }
     
-int Address::port() const
+unsigned Address::port() const
 {
     return mPort;
 }

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/ice-util-cpp.git



More information about the asterisk-scf-commits mailing list