diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-11-02 18:00:40 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-11-02 18:00:40 +0000 |
commit | 5bf926ba4c8047b5dec75be2277d5f9b78fc04c2 (patch) | |
tree | 31aaaf73a3ccb55e3ec4a67d710203253fb2294c /src/lib/krb5/os/dnsglue.c | |
parent | 36d48179639fcf05a250ed973eaebfa3d4348a25 (diff) | |
download | krb5-5bf926ba4c8047b5dec75be2277d5f9b78fc04c2.tar.gz krb5-5bf926ba4c8047b5dec75be2277d5f9b78fc04c2.tar.xz krb5-5bf926ba4c8047b5dec75be2277d5f9b78fc04c2.zip |
Clean up a bunch of signed/unsigned comparison warnings
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23120 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/dnsglue.c')
-rw-r--r-- | src/lib/krb5/os/dnsglue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/krb5/os/dnsglue.c b/src/lib/krb5/os/dnsglue.c index 2543703155..47b455a965 100644 --- a/src/lib/krb5/os/dnsglue.c +++ b/src/lib/krb5/os/dnsglue.c @@ -127,11 +127,11 @@ krb5int_dns_init(struct krb5int_dns_state **dsp, len = res_search(host, ds->nclass, ds->ntype, ds->ansp, ds->ansmax); #endif - if (len > maxincr) { + if ((size_t) len > maxincr) { ret = -1; goto errout; } - while (nextincr < len) + while (nextincr < (size_t) len) nextincr *= 2; if (len < 0 || nextincr > maxincr) { ret = -1; @@ -251,7 +251,7 @@ initparse(struct krb5int_dns_state *ds) char host[MAXDNAME]; #endif - if (ds->anslen < sizeof(HEADER)) + if ((size_t) ds->anslen < sizeof(HEADER)) return -1; hdr = (HEADER *)ds->ansp; |