mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
unsigned constants
This commit is contained in:
parent
01b18d4c7c
commit
dd14c953a8
@ -29,7 +29,7 @@
|
|||||||
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dnssec-signzone.c,v 1.207 2008/09/24 02:46:21 marka Exp $ */
|
/* $Id: dnssec-signzone.c,v 1.208 2008/09/26 01:27:08 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@ -646,7 +646,7 @@ hashlist_hasdup(hashlist_t *l) {
|
|||||||
/*
|
/*
|
||||||
* Skip initial speculative wild card hashs.
|
* Skip initial speculative wild card hashs.
|
||||||
*/
|
*/
|
||||||
while (entries > 0 && next[l->length-1] != 0) {
|
while (entries > 0U && next[l->length-1] != 0U) {
|
||||||
next += l->length;
|
next += l->length;
|
||||||
entries--;
|
entries--;
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: nsec3.c,v 1.4 2008/09/25 04:02:38 tbox Exp $ */
|
/* $Id: nsec3.c,v 1.5 2008/09/26 01:24:55 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -93,8 +93,8 @@ dns_nsec3_buildrdata(dns_db_t *db, dns_dbversion_t *version,
|
|||||||
dns_rdatasetiter_t *rdsiter;
|
dns_rdatasetiter_t *rdsiter;
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
REQUIRE(salt_length < 256);
|
REQUIRE(salt_length < 256U);
|
||||||
REQUIRE(hash_length < 256);
|
REQUIRE(hash_length < 256U);
|
||||||
REQUIRE(flags <= 0xffU);
|
REQUIRE(flags <= 0xffU);
|
||||||
REQUIRE(hashalg <= 0xffU);
|
REQUIRE(hashalg <= 0xffU);
|
||||||
REQUIRE(iterations <= 0xffffU);
|
REQUIRE(iterations <= 0xffffU);
|
||||||
@ -264,7 +264,7 @@ dns_nsec3_hashname(dns_fixedname_t *result,
|
|||||||
/* hash the node name */
|
/* hash the node name */
|
||||||
len = isc_iterated_hash(rethash, hashalg, iterations, salt, saltlength,
|
len = isc_iterated_hash(rethash, hashalg, iterations, salt, saltlength,
|
||||||
downcased->ndata, downcased->length);
|
downcased->ndata, downcased->length);
|
||||||
if (len == 0)
|
if (len == 0U)
|
||||||
return (DNS_R_BADALG);
|
return (DNS_R_BADALG);
|
||||||
|
|
||||||
if (hash_length != NULL)
|
if (hash_length != NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user