From: Ulrich Drepper Date: Fri, 24 Oct 2008 07:05:38 +0000 (+0000) Subject: * resolv/res_query.c (__libc_res_nquery): Add a few casts. X-Git-Tag: cvs/fedora-glibc-20081028T1533~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49685151ea8ad2c0750a996984c719833264295a;p=platform%2Fupstream%2Fglibc.git * resolv/res_query.c (__libc_res_nquery): Add a few casts. --- diff --git a/ChangeLog b/ChangeLog index fe6014c522..ad37c3b17f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-10-24 Ulrich Drepper + + * resolv/res_query.c (__libc_res_nquery): Add a few casts. + 2008-10-23 Ulrich Drepper * po/id.po: New file. diff --git a/resolv/res_query.c b/resolv/res_query.c index 7102ba948e..b6c70f0462 100644 --- a/resolv/res_query.c +++ b/resolv/res_query.c @@ -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);