Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
5564b21b
Commit
5564b21b
authored
Aug 02, 2000
by
David Lawrence
Browse files
use ISC_TF() to return an isc_boolean_t
parent
044ec47f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/dig/nslookup.c
View file @
5564b21b
...
@@ -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: nslookup.c,v 1.3
0
2000/08/02 1
7
:5
8:07 mws
Exp $ */
/* $Id: nslookup.c,v 1.3
1
2000/08/02 1
9
:5
3:33 tale
Exp $ */
#include <config.h>
#include <config.h>
...
@@ -594,7 +594,7 @@ testtype(char *typetext) {
...
@@ -594,7 +594,7 @@ testtype(char *typetext) {
tr
.
base
=
typetext
;
tr
.
base
=
typetext
;
tr
.
length
=
strlen
(
typetext
);
tr
.
length
=
strlen
(
typetext
);
result
=
dns_rdatatype_fromtext
(
&
rdtype
,
&
tr
);
result
=
dns_rdatatype_fromtext
(
&
rdtype
,
&
tr
);
return
(
result
==
ISC_R_SUCCESS
);
return
(
ISC_TF
(
result
==
ISC_R_SUCCESS
)
)
;
}
}
static
isc_boolean_t
static
isc_boolean_t
...
@@ -606,7 +606,7 @@ testclass(char *typetext) {
...
@@ -606,7 +606,7 @@ testclass(char *typetext) {
tr
.
base
=
typetext
;
tr
.
base
=
typetext
;
tr
.
length
=
strlen
(
typetext
);
tr
.
length
=
strlen
(
typetext
);
result
=
dns_rdataclass_fromtext
(
&
rdclass
,
&
tr
);
result
=
dns_rdataclass_fromtext
(
&
rdclass
,
&
tr
);
return
(
result
==
ISC_R_SUCCESS
);
return
(
ISC_TF
(
result
==
ISC_R_SUCCESS
)
)
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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