diff options
author | gthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-01-29 15:18:40 +0000 |
---|---|---|
committer | gthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-01-29 15:18:40 +0000 |
commit | 8475382ba84729a05d8efdea801306d4e461c892 (patch) | |
tree | 4d24f1c2d6cfc7f9a77cf442256d21cccf72e416 | |
parent | 6b7783031139a0895aaa04327aba8ba3b57f314e (diff) | |
download | ATCD-8475382ba84729a05d8efdea801306d4e461c892.tar.gz |
Changed the first parameter of get_addresses from sockaddr* to
sockaddr_in* pointer to emphasize the fact that this function is
IPv4-specific.
-rw-r--r-- | ace/Multihomed_INET_Addr.cpp | 6 | ||||
-rw-r--r-- | ace/Multihomed_INET_Addr.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ace/Multihomed_INET_Addr.cpp b/ace/Multihomed_INET_Addr.cpp index 8be651cea95..fe99c722855 100644 --- a/ace/Multihomed_INET_Addr.cpp +++ b/ace/Multihomed_INET_Addr.cpp @@ -160,12 +160,12 @@ ACE_Multihomed_INET_Addr::get_secondary_addresses(ACE_INET_Addr *secondary_addrs } void -ACE_Multihomed_INET_Addr::get_addresses(sockaddr *addrs, +ACE_Multihomed_INET_Addr::get_addresses(sockaddr_in *addrs, size_t size) const { // Copy primary address to the first slot of the user-supplied array if (size > 0) { - addrs[0] = *ACE_reinterpret_cast (sockaddr*, this->get_addr()); + addrs[0] = *ACE_reinterpret_cast (sockaddr_in*, this->get_addr()); } // Copy secondary addresses to remaining slots of the user-supplied @@ -175,7 +175,7 @@ ACE_Multihomed_INET_Addr::get_addresses(sockaddr *addrs, size - 1 : this->secondaries.size(); for (size_t i = 0; i < top; ++i) { - addrs[i+1] = *ACE_reinterpret_cast (sockaddr*, this->secondaries[i].get_addr()); + addrs[i+1] = *ACE_reinterpret_cast (sockaddr_in*, this->secondaries[i].get_addr()); } } diff --git a/ace/Multihomed_INET_Addr.h b/ace/Multihomed_INET_Addr.h index edc97b02b73..4198316d4e0 100644 --- a/ace/Multihomed_INET_Addr.h +++ b/ace/Multihomed_INET_Addr.h @@ -126,10 +126,10 @@ public: /** * Initialize user-supplied array <addrs> with the the current - * primary and secondary addresses. <isze> is taken as the size of + * primary and secondary addresses. <size> is taken as the size of * this array. */ - void get_addresses(sockaddr *addrs, + void get_addresses(sockaddr_in *addrs, size_t size) const; private: |