Start to be bogging by warnings on compilation and checkers
Both gethostbyaddr() and gethostbyname() are marked as obsolete in POSIX 1003.1.
Program should use getaddrinfo() or getnameinfo() instead.
in src
grep -Rn "gethostbyname" *
lib/bsock.c:202: Qmsg2(jcr, M_ERROR, 0, _("gethostbyname() for host \"%s\"
failed: ERR=%s\n"),
lib/bnet.c:412: * Get human readable error for gethostbyname()
lib/bnet.c:459: P(ip_mutex); /* gethostbyname() is not
thread safe */
lib/bnet.c:461: if ((hp = gethostbyname2(host, family)) == NULL) {
lib/bnet.c:463: if ((hp = gethostbyname(host)) == NULL) {
lib/tcpd.h:211:#define gethostbyname fix_gethostbyname
lib/tcpd.h:212:extern struct hostent *fix_gethostbyname();
tools/bsmtp.c:375: if ((hp = gethostbyname(my_hostname)) == NULL) {
tools/bsmtp.c:376: Pmsg2(0, _("Fatal gethostbyname for myself failed
\"%s\": ERR=%s\n"), my_hostname,
tools/bsmtp.c:411: if ((hp = gethostbyname(mailhost)) == NULL) {
tools/smtp-orig.c:247: if ((hp = gethostbyname(my_name)) == 0) {
tools/smtp-orig.c:255: if ((hp = gethostbyname(mailhost)) == 0) {
win32/compat/winconfig.h:250:/* Define to 1 if you have the `gethostbyname_r'
function. */
As to be fixed by a C programmer
Thanks to consider it.
--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
openSUSE Member & Ambassador
GPG KEY : D5C9B751C4653227
irc: tigerfoot
------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World™ now supports Android™ Apps
for the BlackBerry® PlayBook™. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel