ClusterLabs / cluster-glue

Reusable Cluster Components ("glue")
http://clusterlabs.org/
GNU General Public License v2.0
18 stars 28 forks source link

Convert use of gethostbyname() to use getaddrinfo() #5

Closed krig closed 8 years ago

krig commented 8 years ago

Since gethostbyname is deprecated and considered unsafe, I converted the uses I found to getaddrinfo() instead.

I haven't tested these changes beyond compiling, so please don't merge blindly. :)

dmuhamedagic commented 8 years ago

On Wed, Oct 19, 2016 at 03:03:01AM -0700, Kristoffer Grönlund wrote:

Since gethostbyname is deprecated and considered unsafe, I converted the uses I found to getaddrinfo() instead.

I haven't tested these changes beyond compiling, so please don't merge blindly. :)

Considering the lack of affected devices, it would be difficult for me to test this change. But it looks good to me. Let's merge it.

dmuhamedagic commented 8 years ago

Thanks!