Open gbaligh opened 9 years ago
What OS are you compiling on?
I'm using an OpenWRT Linux, compiled to a MIPS target.
gethostbyname() does a name→IP lookup. It should be replaced with getaddrinfo(), which can do the same.
This means the warning is completely wrong. getnameinfo() is the replacement of gethostbyaddr(), both for IP→name lookups. The reverse.
name→IP: gethostbyname(), getaddrinfo() IP→name: gethostbyaddr(), getnameinfo()
./.libs/libchilli.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.