Skip to content
GitLab
Menu
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
49f8e957
Commit
49f8e957
authored
Apr 18, 2018
by
Mark Andrews
Committed by
Ondřej Surý
Apr 20, 2018
Browse files
use %u instead of %d for unsigned int arguments
parent
d21ff4b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/dns/tests/name_test.c
View file @
49f8e957
...
@@ -542,7 +542,7 @@ ATF_TC_BODY(countlabels, tc) {
...
@@ -542,7 +542,7 @@ ATF_TC_BODY(countlabels, tc) {
NULL
,
0
,
NULL
);
NULL
,
0
,
NULL
);
ATF_REQUIRE_EQ
(
result
,
ISC_R_SUCCESS
);
ATF_REQUIRE_EQ
(
result
,
ISC_R_SUCCESS
);
printf
(
"%s: expect %
d
labels
\n
"
,
printf
(
"%s: expect %
u
labels
\n
"
,
testcases
[
i
].
namestr
,
testcases
[
i
].
expect
);
testcases
[
i
].
namestr
,
testcases
[
i
].
expect
);
ATF_REQUIRE_EQ
(
dns_name_countlabels
(
name
),
ATF_REQUIRE_EQ
(
dns_name_countlabels
(
name
),
...
...
lib/isc/tests/task_test.c
View file @
49f8e957
...
@@ -1135,7 +1135,7 @@ test_purge(int sender, int type, int tag, int exp_purged) {
...
@@ -1135,7 +1135,7 @@ test_purge(int sender, int type, int tag, int exp_purged) {
/*
/*
* We're testing isc_task_purge.
* We're testing isc_task_purge.
*/
*/
printf
(
"purge events %p,%
d
,%p
\n
"
,
printf
(
"purge events %p,%
u
,%p
\n
"
,
purge_sender
,
purge_type_first
,
purge_tag
);
purge_sender
,
purge_type_first
,
purge_tag
);
purged
=
isc_task_purge
(
task
,
purge_sender
,
purged
=
isc_task_purge
(
task
,
purge_sender
,
(
isc_eventtype_t
)
purge_type_first
,
(
isc_eventtype_t
)
purge_type_first
,
...
...
lib/isc/tests/timer_test.c
View file @
49f8e957
...
@@ -138,8 +138,8 @@ ticktock(isc_task_t *task, isc_event_t *event) {
...
@@ -138,8 +138,8 @@ ticktock(isc_task_t *task, isc_event_t *event) {
}
}
if
(
event
->
ev_type
!=
expected_event_type
)
{
if
(
event
->
ev_type
!=
expected_event_type
)
{
printf
(
"expected event type %
d
, got %
d
\n
"
,
printf
(
"expected event type %
u
, got %
u
\n
"
,
expected_event_type
,
(
int
)
event
->
ev_type
);
expected_event_type
,
event
->
ev_type
);
}
}
result
=
isc_time_now
(
&
now
);
result
=
isc_time_now
(
&
now
);
...
...
Mark Andrews
@marka
mentioned in commit
ba238ab3
·
Apr 20, 2018
mentioned in commit
ba238ab3
mentioned in commit ba238ab374448cc2cda2b0c363bbfd4c061e3701
Toggle commit list
Mark Andrews
@marka
mentioned in commit
8b29424a
·
Apr 20, 2018
mentioned in commit
8b29424a
mentioned in commit 8b29424adb9fb9fdb58534b9f6cad14a6b2dcd02
Toggle commit list
Mark Andrews
@marka
mentioned in commit
578714e8
·
Apr 20, 2018
mentioned in commit
578714e8
mentioned in commit 578714e8f1570df8f55fd8dd408e2dc86322ee3b
Toggle commit list
Write
Preview
Supports
Markdown
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