folkertvanheusden / multitail

Tail on steroids
https://vanheusden.com/multitail/
MIT License
121 stars 13 forks source link

gethostbyaddr deprecated #12

Open mikelolasagasti opened 1 year ago

mikelolasagasti commented 1 year ago

rpmlint reports the following:

The gethostbyname() and gethostbyaddr() functions are deprecated as among other things they are not IPv6 ready. Applications should use getaddrinfo(3) and getnameinfo(3) instead. Please work with upstream to port the application to the modern interface.

$ grep  gethostbyaddr *
cv.c:                   if ((ht = gethostbyaddr((char *)&addr, sizeof(addr), AF_INET)) == NULL)
mt.c:       struct hostent *he = gethostbyaddr(&(sai -> sin_addr.s_addr), sizeof(sai -> sin_addr.s_addr), AF_INET);

More info https://udrepper.livejournal.com/16116.html