Commit d7ec175b authored by Shane Kerr's avatar Shane Kerr
Browse files

Couple of casts to fix build errors reported by robie.

parent 578645ff
...@@ -509,7 +509,8 @@ isc_result_t dhcp_failover_link_signal (omapi_object_t *h, ...@@ -509,7 +509,8 @@ isc_result_t dhcp_failover_link_signal (omapi_object_t *h,
slen = strlen(sname); slen = strlen(sname);
} else if (link->imsg->options_present & } else if (link->imsg->options_present &
FTB_RELATIONSHIP_NAME) { FTB_RELATIONSHIP_NAME) {
sname = link->imsg->relationship_name.data; sname = (char *)link->imsg->
relationship_name.data;
slen = link->imsg->relationship_name.count; slen = link->imsg->relationship_name.count;
} else { } else {
sname = "unknown"; sname = "unknown";
...@@ -1304,7 +1305,7 @@ isc_result_t dhcp_failover_state_signal (omapi_object_t *o, ...@@ -1304,7 +1305,7 @@ isc_result_t dhcp_failover_state_signal (omapi_object_t *o,
/* XXX: Overflow results in log truncation, safe. */ /* XXX: Overflow results in log truncation, safe. */
snprintf(errbuf, sizeof(errbuf), "remote failover " snprintf(errbuf, sizeof(errbuf), "remote failover "
"relationship name %.*s does not match", "relationship name %.*s does not match",
link->imsg->relationship_name.count, (int)link->imsg->relationship_name.count,
link->imsg->relationship_name.data); link->imsg->relationship_name.data);
errmsg = errbuf; errmsg = errbuf;
reason = FTR_INVALID_PARTNER; reason = FTR_INVALID_PARTNER;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment