Skip to content

Commit

Permalink
* resolv/res_query.c (__libc_res_nquery): Add a few casts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Oct 24, 2008
1 parent 8d9d5d3 commit 4968515
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2008-10-24 Ulrich Drepper <drepper@redhat.com>

* resolv/res_query.c (__libc_res_nquery): Add a few casts.

2008-10-23 Ulrich Drepper <drepper@redhat.com>

* po/id.po: New file.
Expand Down
8 changes: 4 additions & 4 deletions resolv/res_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ __libc_res_nquery(res_state statp,
tests of HP2. */
HEADER *hp2 = answerp2 ? (HEADER *) *answerp2 : hp;

if (n < sizeof (HEADER) && nanswerp2 != NULL
&& *nanswerp2 > sizeof (HEADER))
if (n < (int) sizeof (HEADER) && nanswerp2 != NULL
&& *nanswerp2 > (int) sizeof (HEADER))
{
/* Special case of partial answer. */
assert (hp != hp2);
hp = hp2;
}
else if (nanswerp2 != NULL
&& *nanswerp2 < sizeof (HEADER) && n > sizeof (HEADER))
else if (nanswerp2 != NULL && *nanswerp2 < (int) sizeof (HEADER)
&& n > (int) sizeof (HEADER))
{
/* Special case of partial answer. */
assert (hp != hp2);
Expand Down

0 comments on commit 4968515

Please sign in to comment.