mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 07:04:45 +08:00
2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/ns_parse.c (ns_parserr): Comment out if ( section < 0 ) (type is unsigned).
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libnetworking/libc/ns_parse.c (ns_parserr):
|
||||
Comment out if ( section < 0 ) (type is unsigned).
|
||||
* libnetworking/libc/gethostbydns.c: Comment out __dns_getanswer
|
||||
(Unused).
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) {
|
||||
int b;
|
||||
|
||||
/* Make section right. */
|
||||
if (section < 0 || section >= ns_s_max)
|
||||
if ( /* section < 0 || */ section >= ns_s_max)
|
||||
goto enodev;
|
||||
if ((int)section != (int)handle->_sect) {
|
||||
handle->_sect = section;
|
||||
|
||||
Reference in New Issue
Block a user