Commit 5eb91bd9 authored by Mark Andrews's avatar Mark Andrews
Browse files

silence compiler warnings (HPUX/11i)

parent 1814603e
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dig.c,v 1.181 2003/02/26 05:05:13 marka Exp $ */ /* $Id: dig.c,v 1.182 2003/07/25 00:01:03 marka Exp $ */
#include <config.h> #include <config.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -1000,7 +1000,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup, ...@@ -1000,7 +1000,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
char *hash; char *hash;
cmd = option[0]; cmd = option[0];
if (strlen(option) > 1) { if (strlen(option) > 1U) {
value_from_next = ISC_FALSE; value_from_next = ISC_FALSE;
value = &option[1]; value = &option[1];
} else { } else {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dnssec-signkey.c,v 1.58 2002/12/03 05:01:34 marka Exp $ */ /* $Id: dnssec-signkey.c,v 1.59 2003/07/25 00:01:04 marka Exp $ */
#include <config.h> #include <config.h>
...@@ -260,7 +260,7 @@ main(int argc, char *argv[]) { ...@@ -260,7 +260,7 @@ main(int argc, char *argv[]) {
setup_logging(verbose, mctx, &log); setup_logging(verbose, mctx, &log);
if (strlen(argv[0]) < 8 || strncmp(argv[0], "keyset-", 7) != 0) if (strlen(argv[0]) < 8U || strncmp(argv[0], "keyset-", 7) != 0)
fatal("keyset file '%s' must start with keyset-", argv[0]); fatal("keyset file '%s' must start with keyset-", argv[0]);
db = NULL; db = NULL;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dnssectool.c,v 1.36 2001/11/27 22:08:58 bwelling Exp $ */ /* $Id: dnssectool.c,v 1.37 2003/07/25 00:01:04 marka Exp $ */
#include <config.h> #include <config.h>
...@@ -273,7 +273,7 @@ strtotime(const char *str, isc_int64_t now, isc_int64_t base) { ...@@ -273,7 +273,7 @@ strtotime(const char *str, isc_int64_t now, isc_int64_t base) {
if (*endp != '\0') if (*endp != '\0')
fatal("time value %s is invalid", str); fatal("time value %s is invalid", str);
val = now + offset; val = now + offset;
} else if (strlen(str) == 8) { } else if (strlen(str) == 8U) {
char timestr[15]; char timestr[15];
sprintf(timestr, "%s000000", str); sprintf(timestr, "%s000000", str);
result = dns_time64_fromtext(timestr, &val); result = dns_time64_fromtext(timestr, &val);
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: nsupdate.c,v 1.121 2002/11/12 23:58:13 explorer Exp $ */ /* $Id: nsupdate.c,v 1.122 2003/07/25 00:01:05 marka Exp $ */
#include <config.h> #include <config.h>
...@@ -89,7 +89,7 @@ extern int h_errno; ...@@ -89,7 +89,7 @@ extern int h_errno;
#define INITTEXT (2 * 1024) #define INITTEXT (2 * 1024)
#define MAXTEXT (128 * 1024) #define MAXTEXT (128 * 1024)
#define FIND_TIMEOUT 5 #define FIND_TIMEOUT 5
#define TTL_MAX 2147483647 /* Maximum signed 32 bit integer. */ #define TTL_MAX 2147483647U /* Maximum signed 32 bit integer. */
#define DNSDEFAULTPORT 53 #define DNSDEFAULTPORT 53
...@@ -1156,7 +1156,7 @@ update_addordelete(char *cmdline, isc_boolean_t isdelete) { ...@@ -1156,7 +1156,7 @@ update_addordelete(char *cmdline, isc_boolean_t isdelete) {
if (isdelete) if (isdelete)
ttl = 0; ttl = 0;
else if (ttl > TTL_MAX) { else if (ttl > TTL_MAX) {
fprintf(stderr, "ttl '%s' is out of range (0 to %d)\n", fprintf(stderr, "ttl '%s' is out of range (0 to %u)\n",
word, TTL_MAX); word, TTL_MAX);
goto failure; goto failure;
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: gen.c,v 1.69 2003/07/17 08:05:15 marka Exp $ */ /* $Id: gen.c,v 1.70 2003/07/25 00:01:05 marka Exp $ */
#include <config.h> #include <config.h>
...@@ -772,7 +772,7 @@ main(int argc, char **argv) { ...@@ -772,7 +772,7 @@ main(int argc, char **argv) {
"#define dns_rdatatype_%s\t%s" "#define dns_rdatatype_%s\t%s"
"((dns_rdatatype_t)dns_rdatatype_%s)" "((dns_rdatatype_t)dns_rdatatype_%s)"
"\n", "\n",
s, strlen(s) < 2 ? "\t" : "", s); s, strlen(s) < 2U ? "\t" : "", s);
lasttype = tt->type; lasttype = tt->type;
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: rdata.c,v 1.176 2003/07/17 08:05:15 marka Exp $ */ /* $Id: rdata.c,v 1.177 2003/07/25 00:01:05 marka Exp $ */
#include <config.h> #include <config.h>
#include <ctype.h> #include <ctype.h>
...@@ -626,7 +626,7 @@ unknown_fromtext(dns_rdataclass_t rdclass, dns_rdatatype_t type, ...@@ -626,7 +626,7 @@ unknown_fromtext(dns_rdataclass_t rdclass, dns_rdatatype_t type,
result = isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, result = isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE); ISC_FALSE);
if (result == ISC_R_SUCCESS && token.value.as_ulong > 65535) if (result == ISC_R_SUCCESS && token.value.as_ulong > 65535U)
return (ISC_R_RANGE); return (ISC_R_RANGE);
result = isc_buffer_allocate(mctx, &buf, token.value.as_ulong); result = isc_buffer_allocate(mctx, &buf, token.value.as_ulong);
if (result != ISC_R_SUCCESS) if (result != ISC_R_SUCCESS)
...@@ -1812,7 +1812,7 @@ atob_tobuffer(isc_lex_t *lexer, isc_buffer_t *target) { ...@@ -1812,7 +1812,7 @@ atob_tobuffer(isc_lex_t *lexer, isc_buffer_t *target) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if ((token.value.as_ulong % 4) != 0) if ((token.value.as_ulong % 4) != 0U)
isc_buffer_subtract(target, 4 - (token.value.as_ulong % 4)); isc_buffer_subtract(target, 4 - (token.value.as_ulong % 4));
/* /*
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: tsig_250.c,v 1.56 2002/02/20 03:34:44 marka Exp $ */ /* $Id: tsig_250.c,v 1.57 2003/07/25 00:01:07 marka Exp $ */
/* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */ /* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */
...@@ -70,7 +70,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) { ...@@ -70,7 +70,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
...@@ -79,7 +79,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) { ...@@ -79,7 +79,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
...@@ -93,7 +93,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) { ...@@ -93,7 +93,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
...@@ -119,7 +119,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) { ...@@ -119,7 +119,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: afsdb_18.c,v 1.40 2001/11/27 01:55:34 gson Exp $ */ /* $Id: afsdb_18.c,v 1.41 2003/07/25 00:01:08 marka Exp $ */
/* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */ /* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */
...@@ -43,7 +43,7 @@ fromtext_afsdb(ARGS_FROMTEXT) { ...@@ -43,7 +43,7 @@ fromtext_afsdb(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: cert_37.c,v 1.43 2002/02/20 03:34:46 marka Exp $ */ /* $Id: cert_37.c,v 1.44 2003/07/25 00:01:08 marka Exp $ */
/* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */ /* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */
...@@ -53,7 +53,7 @@ fromtext_cert(ARGS_FROMTEXT) { ...@@ -53,7 +53,7 @@ fromtext_cert(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: loc_29.c,v 1.38 2002/06/14 23:40:14 marka Exp $ */ /* $Id: loc_29.c,v 1.39 2003/07/25 00:01:08 marka Exp $ */
/* Reviewed: Wed Mar 15 18:13:09 PST 2000 by explorer */ /* Reviewed: Wed Mar 15 18:13:09 PST 2000 by explorer */
...@@ -72,7 +72,7 @@ fromtext_loc(ARGS_FROMTEXT) { ...@@ -72,7 +72,7 @@ fromtext_loc(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 90) if (token.value.as_ulong > 90U)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
d1 = (int)token.value.as_ulong; d1 = (int)token.value.as_ulong;
/* /*
...@@ -156,7 +156,7 @@ fromtext_loc(ARGS_FROMTEXT) { ...@@ -156,7 +156,7 @@ fromtext_loc(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 180) if (token.value.as_ulong > 180U)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
d2 = (int)token.value.as_ulong; d2 = (int)token.value.as_ulong;
...@@ -534,7 +534,7 @@ totext_loc(ARGS_TOTEXT) { ...@@ -534,7 +534,7 @@ totext_loc(ARGS_TOTEXT) {
altitude = uint32_fromregion(&sr); altitude = uint32_fromregion(&sr);
isc_region_consume(&sr, 4); isc_region_consume(&sr, 4);
if (altitude < 10000000) { if (altitude < 10000000U) {
below = ISC_TRUE; below = ISC_TRUE;
altitude = 10000000 - altitude; altitude = 10000000 - altitude;
} else { } else {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: mx_15.c,v 1.49 2001/11/27 01:55:37 gson Exp $ */ /* $Id: mx_15.c,v 1.50 2003/07/25 00:01:08 marka Exp $ */
/* reviewed: Wed Mar 15 18:05:46 PST 2000 by brister */ /* reviewed: Wed Mar 15 18:05:46 PST 2000 by brister */
...@@ -38,7 +38,7 @@ fromtext_mx(ARGS_FROMTEXT) { ...@@ -38,7 +38,7 @@ fromtext_mx(ARGS_FROMTEXT) {
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: rt_21.c,v 1.38 2001/11/27 01:55:39 gson Exp $ */ /* $Id: rt_21.c,v 1.39 2003/07/25 00:01:08 marka Exp $ */
/* reviewed: Thu Mar 16 15:02:31 PST 2000 by brister */ /* reviewed: Thu Mar 16 15:02:31 PST 2000 by brister */
...@@ -40,7 +40,7 @@ fromtext_rt(ARGS_FROMTEXT) { ...@@ -40,7 +40,7 @@ fromtext_rt(ARGS_FROMTEXT) {
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: sig_24.c,v 1.58 2002/02/20 03:35:00 marka Exp $ */ /* $Id: sig_24.c,v 1.59 2003/07/25 00:01:09 marka Exp $ */
/* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */ /* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */
...@@ -73,7 +73,7 @@ fromtext_sig(ARGS_FROMTEXT) { ...@@ -73,7 +73,7 @@ fromtext_sig(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xff) if (token.value.as_ulong > 0xffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
c = (unsigned char)token.value.as_ulong; c = (unsigned char)token.value.as_ulong;
RETERR(mem_tobuffer(target, &c, 1)); RETERR(mem_tobuffer(target, &c, 1));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: tkey_249.c,v 1.52 2002/02/20 03:35:02 marka Exp $ */ /* $Id: tkey_249.c,v 1.53 2003/07/25 00:01:09 marka Exp $ */
/* /*
* Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley. * Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley.
...@@ -73,7 +73,7 @@ fromtext_tkey(ARGS_FROMTEXT) { ...@@ -73,7 +73,7 @@ fromtext_tkey(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
...@@ -99,7 +99,7 @@ fromtext_tkey(ARGS_FROMTEXT) { ...@@ -99,7 +99,7 @@ fromtext_tkey(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
...@@ -113,7 +113,7 @@ fromtext_tkey(ARGS_FROMTEXT) { ...@@ -113,7 +113,7 @@ fromtext_tkey(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
...@@ -221,7 +221,7 @@ totext_tkey(ARGS_TOTEXT) { ...@@ -221,7 +221,7 @@ totext_tkey(ARGS_TOTEXT) {
* Other Data. * Other Data.
*/ */
REQUIRE(n <= sr.length); REQUIRE(n <= sr.length);
if (n != 0) { if (n != 0U) {
dr = sr; dr = sr;
dr.length = n; dr.length = n;
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: a6_38.c,v 1.49 2002/02/20 03:35:09 marka Exp $ */ /* $Id: a6_38.c,v 1.50 2003/07/25 00:01:10 marka Exp $ */
/* RFC2874 */ /* RFC2874 */
...@@ -48,7 +48,7 @@ fromtext_in_a6(ARGS_FROMTEXT) { ...@@ -48,7 +48,7 @@ fromtext_in_a6(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 128) if (token.value.as_ulong > 128U)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
prefixlen = (unsigned char)token.value.as_ulong; prefixlen = (unsigned char)token.value.as_ulong;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: kx_36.c,v 1.38 2001/11/27 01:55:45 gson Exp $ */ /* $Id: kx_36.c,v 1.39 2003/07/25 00:01:10 marka Exp $ */
/* Reviewed: Thu Mar 16 17:24:54 PST 2000 by explorer */ /* Reviewed: Thu Mar 16 17:24:54 PST 2000 by explorer */
...@@ -41,7 +41,7 @@ fromtext_in_kx(ARGS_FROMTEXT) { ...@@ -41,7 +41,7 @@ fromtext_in_kx(ARGS_FROMTEXT) {
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: naptr_35.c,v 1.44 2001/11/27 01:55:46 gson Exp $ */ /* $Id: naptr_35.c,v 1.45 2003/07/25 00:01:10 marka Exp $ */
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */ /* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
...@@ -44,7 +44,7 @@ fromtext_in_naptr(ARGS_FROMTEXT) { ...@@ -44,7 +44,7 @@ fromtext_in_naptr(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target)); RETERR(uint16_tobuffer(token.value.as_ulong, target));
...@@ -53,7 +53,7 @@ fromtext_in_naptr(ARGS_FROMTEXT) { ...@@ -53,7 +53,7 @@ fromtext_in_naptr(ARGS_FROMTEXT) {
*/ */
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
ISC_FALSE)); ISC_FALSE));
if (token.value.as_ulong > 0xffff) if (token.value.as_ulong > 0xffffU)
RETTOK(ISC_R_RANGE); RETTOK(ISC_R_RANGE);