Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
5eb91bd9
Commit
5eb91bd9
authored
Jul 25, 2003
by
Mark Andrews
Browse files
silence compiler warnings (HPUX/11i)
parent
1814603e
Changes
36
Hide whitespace changes
Inline
Side-by-side
bin/dig/dig.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dig.c,v 1.18
1
2003/0
2
/2
6
0
5:05:1
3 marka Exp $ */
/* $Id: dig.c,v 1.18
2
2003/0
7
/2
5
0
0:01:0
3 marka Exp $ */
#include
<config.h>
#include
<stdlib.h>
...
...
@@ -1000,7 +1000,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
char
*
hash
;
cmd
=
option
[
0
];
if
(
strlen
(
option
)
>
1
)
{
if
(
strlen
(
option
)
>
1
U
)
{
value_from_next
=
ISC_FALSE
;
value
=
&
option
[
1
];
}
else
{
...
...
bin/dnssec/dnssec-signkey.c
View file @
5eb91bd9
...
...
@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signkey.c,v 1.5
8
200
2/12/03
0
5
:01:
3
4 marka Exp $ */
/* $Id: dnssec-signkey.c,v 1.5
9
200
3/07/25
0
0
:01:
0
4 marka Exp $ */
#include
<config.h>
...
...
@@ -260,7 +260,7 @@ main(int argc, char *argv[]) {
setup_logging
(
verbose
,
mctx
,
&
log
);
if
(
strlen
(
argv
[
0
])
<
8
||
strncmp
(
argv
[
0
],
"keyset-"
,
7
)
!=
0
)
if
(
strlen
(
argv
[
0
])
<
8
U
||
strncmp
(
argv
[
0
],
"keyset-"
,
7
)
!=
0
)
fatal
(
"keyset file '%s' must start with keyset-"
,
argv
[
0
]);
db
=
NULL
;
...
...
bin/dnssec/dnssectool.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssectool.c,v 1.3
6
200
1/11/27 22:08:58 bwelling
Exp $ */
/* $Id: dnssectool.c,v 1.3
7
200
3/07/25 00:01:04 marka
Exp $ */
#include
<config.h>
...
...
@@ -273,7 +273,7 @@ strtotime(const char *str, isc_int64_t now, isc_int64_t base) {
if
(
*
endp
!=
'\0'
)
fatal
(
"time value %s is invalid"
,
str
);
val
=
now
+
offset
;
}
else
if
(
strlen
(
str
)
==
8
)
{
}
else
if
(
strlen
(
str
)
==
8
U
)
{
char
timestr
[
15
];
sprintf
(
timestr
,
"%s000000"
,
str
);
result
=
dns_time64_fromtext
(
timestr
,
&
val
);
...
...
bin/nsupdate/nsupdate.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: nsupdate.c,v 1.12
1
200
2/11/12 23:58:13 explorer
Exp $ */
/* $Id: nsupdate.c,v 1.12
2
200
3/07/25 00:01:05 marka
Exp $ */
#include
<config.h>
...
...
@@ -89,7 +89,7 @@ extern int h_errno;
#define INITTEXT (2 * 1024)
#define MAXTEXT (128 * 1024)
#define FIND_TIMEOUT 5
#define TTL_MAX 2147483647
/* Maximum signed 32 bit integer. */
#define TTL_MAX 2147483647
U
/* Maximum signed 32 bit integer. */
#define DNSDEFAULTPORT 53
...
...
@@ -1156,7 +1156,7 @@ update_addordelete(char *cmdline, isc_boolean_t isdelete) {
if
(
isdelete
)
ttl
=
0
;
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
);
goto
failure
;
}
...
...
lib/dns/gen.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: gen.c,v 1.
69
2003/07/
17
0
8
:0
5:1
5 marka Exp $ */
/* $Id: gen.c,v 1.
70
2003/07/
25
0
0
:0
1:0
5 marka Exp $ */
#include
<config.h>
...
...
@@ -772,7 +772,7 @@ main(int argc, char **argv) {
"#define dns_rdatatype_%s
\t
%s"
"((dns_rdatatype_t)dns_rdatatype_%s)"
"
\n
"
,
s
,
strlen
(
s
)
<
2
?
"
\t
"
:
""
,
s
);
s
,
strlen
(
s
)
<
2
U
?
"
\t
"
:
""
,
s
);
lasttype
=
tt
->
type
;
}
...
...
lib/dns/rdata.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rdata.c,v 1.17
6
2003/07/
17 08:05:1
5 marka Exp $ */
/* $Id: rdata.c,v 1.17
7
2003/07/
25 00:01:0
5 marka Exp $ */
#include
<config.h>
#include
<ctype.h>
...
...
@@ -626,7 +626,7 @@ unknown_fromtext(dns_rdataclass_t rdclass, dns_rdatatype_t type,
result
=
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
);
if
(
result
==
ISC_R_SUCCESS
&&
token
.
value
.
as_ulong
>
65535
)
if
(
result
==
ISC_R_SUCCESS
&&
token
.
value
.
as_ulong
>
65535
U
)
return
(
ISC_R_RANGE
);
result
=
isc_buffer_allocate
(
mctx
,
&
buf
,
token
.
value
.
as_ulong
);
if
(
result
!=
ISC_R_SUCCESS
)
...
...
@@ -1812,7 +1812,7 @@ atob_tobuffer(isc_lex_t *lexer, isc_buffer_t *target) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
((
token
.
value
.
as_ulong
%
4
)
!=
0
)
if
((
token
.
value
.
as_ulong
%
4
)
!=
0
U
)
isc_buffer_subtract
(
target
,
4
-
(
token
.
value
.
as_ulong
%
4
));
/*
...
...
lib/dns/rdata/any_255/tsig_250.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: tsig_250.c,v 1.5
6
200
2
/0
2
/2
0
0
3:34:44
marka Exp $ */
/* $Id: tsig_250.c,v 1.5
7
200
3
/0
7
/2
5
0
0:01:07
marka Exp $ */
/* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */
...
...
@@ -70,7 +70,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -79,7 +79,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -93,7 +93,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -119,7 +119,7 @@ fromtext_any_tsig(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/rdata/generic/afsdb_18.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: afsdb_18.c,v 1.4
0
200
1/11
/2
7
0
1:55:34 gson
Exp $ */
/* $Id: afsdb_18.c,v 1.4
1
200
3/07
/2
5
0
0:01:08 marka
Exp $ */
/* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */
...
...
@@ -43,7 +43,7 @@ fromtext_afsdb(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/rdata/generic/cert_37.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: cert_37.c,v 1.4
3
200
2
/0
2
/2
0
0
3:34:46
marka Exp $ */
/* $Id: cert_37.c,v 1.4
4
200
3
/0
7
/2
5
0
0:01:08
marka Exp $ */
/* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */
...
...
@@ -53,7 +53,7 @@ fromtext_cert(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/rdata/generic/loc_29.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: loc_29.c,v 1.3
8
200
2
/0
6/14 23:40:14
marka Exp $ */
/* $Id: loc_29.c,v 1.3
9
200
3
/0
7/25 00:01:08
marka Exp $ */
/* Reviewed: Wed Mar 15 18:13:09 PST 2000 by explorer */
...
...
@@ -72,7 +72,7 @@ fromtext_loc(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
90
)
if
(
token
.
value
.
as_ulong
>
90
U
)
RETTOK
(
ISC_R_RANGE
);
d1
=
(
int
)
token
.
value
.
as_ulong
;
/*
...
...
@@ -156,7 +156,7 @@ fromtext_loc(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
180
)
if
(
token
.
value
.
as_ulong
>
180
U
)
RETTOK
(
ISC_R_RANGE
);
d2
=
(
int
)
token
.
value
.
as_ulong
;
...
...
@@ -534,7 +534,7 @@ totext_loc(ARGS_TOTEXT) {
altitude
=
uint32_fromregion
(
&
sr
);
isc_region_consume
(
&
sr
,
4
);
if
(
altitude
<
10000000
)
{
if
(
altitude
<
10000000
U
)
{
below
=
ISC_TRUE
;
altitude
=
10000000
-
altitude
;
}
else
{
...
...
lib/dns/rdata/generic/mx_15.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: mx_15.c,v 1.
49
200
1/11
/2
7
0
1:55:37 gson
Exp $ */
/* $Id: mx_15.c,v 1.
50
200
3/07
/2
5
0
0:01:08 marka
Exp $ */
/* reviewed: Wed Mar 15 18:05:46 PST 2000 by brister */
...
...
@@ -38,7 +38,7 @@ fromtext_mx(ARGS_FROMTEXT) {
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/rdata/generic/rt_21.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rt_21.c,v 1.3
8
200
1/11
/2
7
0
1:55:39 gson
Exp $ */
/* $Id: rt_21.c,v 1.3
9
200
3/07
/2
5
0
0:01:08 marka
Exp $ */
/* reviewed: Thu Mar 16 15:02:31 PST 2000 by brister */
...
...
@@ -40,7 +40,7 @@ fromtext_rt(ARGS_FROMTEXT) {
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/rdata/generic/sig_24.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sig_24.c,v 1.5
8
200
2
/0
2
/2
0
0
3:35:00
marka Exp $ */
/* $Id: sig_24.c,v 1.5
9
200
3
/0
7
/2
5
0
0:01:09
marka Exp $ */
/* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */
...
...
@@ -73,7 +73,7 @@ fromtext_sig(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xff
)
if
(
token
.
value
.
as_ulong
>
0xff
U
)
RETTOK
(
ISC_R_RANGE
);
c
=
(
unsigned
char
)
token
.
value
.
as_ulong
;
RETERR
(
mem_tobuffer
(
target
,
&
c
,
1
));
...
...
lib/dns/rdata/generic/tkey_249.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: tkey_249.c,v 1.5
2
200
2
/0
2
/2
0
0
3:35
:0
2
marka Exp $ */
/* $Id: tkey_249.c,v 1.5
3
200
3
/0
7
/2
5
0
0:01
:0
9
marka Exp $ */
/*
* Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley.
...
...
@@ -73,7 +73,7 @@ fromtext_tkey(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -99,7 +99,7 @@ fromtext_tkey(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -113,7 +113,7 @@ fromtext_tkey(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -221,7 +221,7 @@ totext_tkey(ARGS_TOTEXT) {
* Other Data.
*/
REQUIRE
(
n
<=
sr
.
length
);
if
(
n
!=
0
)
{
if
(
n
!=
0
U
)
{
dr
=
sr
;
dr
.
length
=
n
;
if
((
tctx
->
flags
&
DNS_STYLEFLAG_MULTILINE
)
!=
0
)
...
...
lib/dns/rdata/in_1/a6_38.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: a6_38.c,v 1.
49
200
2
/0
2
/2
0
0
3:35:09
marka Exp $ */
/* $Id: a6_38.c,v 1.
50
200
3
/0
7
/2
5
0
0:01:10
marka Exp $ */
/* RFC2874 */
...
...
@@ -48,7 +48,7 @@ fromtext_in_a6(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
128
)
if
(
token
.
value
.
as_ulong
>
128
U
)
RETTOK
(
ISC_R_RANGE
);
prefixlen
=
(
unsigned
char
)
token
.
value
.
as_ulong
;
...
...
lib/dns/rdata/in_1/kx_36.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: kx_36.c,v 1.3
8
200
1/11
/2
7
0
1:55:45 gson
Exp $ */
/* $Id: kx_36.c,v 1.3
9
200
3/07
/2
5
0
0:01:10 marka
Exp $ */
/* Reviewed: Thu Mar 16 17:24:54 PST 2000 by explorer */
...
...
@@ -41,7 +41,7 @@ fromtext_in_kx(ARGS_FROMTEXT) {
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/rdata/in_1/naptr_35.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: naptr_35.c,v 1.4
4
200
1/11
/2
7
0
1:55:46 gson
Exp $ */
/* $Id: naptr_35.c,v 1.4
5
200
3/07
/2
5
0
0:01:10 marka
Exp $ */
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
...
...
@@ -44,7 +44,7 @@ fromtext_in_naptr(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -53,7 +53,7 @@ fromtext_in_naptr(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/rdata/in_1/px_26.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: px_26.c,v 1.3
5
200
1/11
/2
7
0
1:55:49 gson
Exp $ */
/* $Id: px_26.c,v 1.3
6
200
3/07
/2
5
0
0:01:10 marka
Exp $ */
/* Reviewed: Mon Mar 20 10:44:27 PST 2000 */
...
...
@@ -44,7 +44,7 @@ fromtext_in_px(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/rdata/in_1/srv_33.c
View file @
5eb91bd9
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: srv_33.c,v 1.3
7
200
1/11
/2
7
0
1:55:50 gson
Exp $ */
/* $Id: srv_33.c,v 1.3
8
200
3/07
/2
5
0
0:01:10 marka
Exp $ */
/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */
...
...
@@ -44,7 +44,7 @@ fromtext_in_srv(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -53,7 +53,7 @@ fromtext_in_srv(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
@@ -62,7 +62,7 @@ fromtext_in_srv(ARGS_FROMTEXT) {
*/
RETERR
(
isc_lex_getmastertoken
(
lexer
,
&
token
,
isc_tokentype_number
,
ISC_FALSE
));
if
(
token
.
value
.
as_ulong
>
0xffff
)
if
(
token
.
value
.
as_ulong
>
0xffff
U
)
RETTOK
(
ISC_R_RANGE
);
RETERR
(
uint16_tobuffer
(
token
.
value
.
as_ulong
,
target
));
...
...
lib/dns/sec/dst/dst_api.c
View file @
5eb91bd9
...
...
@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: dst_api.c,v 1.10
6
200
2/12/13 02:51:40
marka Exp $
* $Id: dst_api.c,v 1.10
7
200
3/07/25 00:01:11
marka Exp $
*/
#include
<config.h>
...
...
@@ -1054,7 +1054,7 @@ buildfilename(dns_name_t *name, dns_keytag_t id,
if
(
isc_buffer_availablelength
(
out
)
<
strlen
(
directory
))
return
(
ISC_R_NOSPACE
);
isc_buffer_putstr
(
out
,
directory
);
if
(
strlen
(
directory
)
>
0
&&
if
(
strlen
(
directory
)
>
0
U
&&
directory
[
strlen
(
directory
)
-
1
]
!=
'/'
)
isc_buffer_putstr
(
out
,
"/"
);
}
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment