Skip to content

Commit

Permalink
IPAddr: make copy_to const
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Nov 21, 2023
1 parent 6ab1f57 commit 032c6a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/include/swoc/IPAddr.h
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ class IPAddr {
* @param sa Destination.
* @return @a sa
*/
sockaddr *copy_to(sockaddr *sa);
sockaddr *copy_to(sockaddr *sa) const;

/** Parse a string and load the result in @a this.
*
Expand Down
2 changes: 1 addition & 1 deletion code/src/swoc_ip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ IPAddr::operator=(IPEndpoint const &addr) {
}

sockaddr *
IPAddr::copy_to(sockaddr *sa) {
IPAddr::copy_to(sockaddr *sa) const {
if (this->is_ip4()) {
_addr._ip4.copy_to(sa);
} else if (this->is_ip6()) {
Expand Down

0 comments on commit 032c6a1

Please sign in to comment.