[Bug 1983] cpukit/libnetworking/libc/gethostbyht.c:226:12: warning: ordered comparison of pointer with integer zero

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Dec 7 06:24:10 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1983

--- Comment #1 from Chris Johns <chrisj at rtems.org> 2011-12-07 00:24:10 CST ---
(In reply to comment #1)
> 
> I do not understand how this code is supposed to work and believe it has never
> worked.

Agreed.

> ATM, my best guess is, this "hostf<0" should be "hostf == 0" (Abort if file has
> not already been opened) - Agreed?

Yes, your suggested change looks fine.

> Besides this, this code is really ancient/outdated and could use a major
> upgrade.

The whole stack needs to be upgraded.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list