diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-10-24 07:05:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-10-24 07:05:38 +0000 |
commit | 49685151ea8ad2c0750a996984c719833264295a (patch) | |
tree | a21f45c46d3f2e332384e70041e574d232c1dab5 | |
parent | 8d9d5d35de30536da67960e5f6c74db62d26f079 (diff) | |
download | glibc-49685151ea8ad2c0750a996984c719833264295a.zip glibc-49685151ea8ad2c0750a996984c719833264295a.tar.gz glibc-49685151ea8ad2c0750a996984c719833264295a.tar.bz2 |
* resolv/res_query.c (__libc_res_nquery): Add a few casts.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | resolv/res_query.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -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. diff --git a/resolv/res_query.c b/resolv/res_query.c index 7102ba9..b6c70f0 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); |