]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Couple of casts to fix build errors reported by robie.
authorShane Kerr <shane@isc.org>
Tue, 18 Sep 2007 07:24:22 +0000 (07:24 +0000)
committerShane Kerr <shane@isc.org>
Tue, 18 Sep 2007 07:24:22 +0000 (07:24 +0000)
server/failover.c

index 06ebe3883802e8936a97e3d57c75eced4558c47e..a2b270049fa7ede28b68d62d44267d05370cced8 100644 (file)
@@ -509,7 +509,8 @@ isc_result_t dhcp_failover_link_signal (omapi_object_t *h,
                                slen = strlen(sname);
                            } else if (link->imsg->options_present &
                                       FTB_RELATIONSHIP_NAME) {
-                               sname = link->imsg->relationship_name.data;
+                               sname = (char *)link->imsg->
+                                               relationship_name.data;
                                slen = link->imsg->relationship_name.count;
                            } else {
                                sname = "unknown";
@@ -1304,7 +1305,7 @@ isc_result_t dhcp_failover_state_signal (omapi_object_t *o,
                        /* XXX: Overflow results in log truncation, safe. */
                        snprintf(errbuf, sizeof(errbuf), "remote failover "
                                 "relationship name %.*s does not match",
-                                link->imsg->relationship_name.count,
+                                (int)link->imsg->relationship_name.count,
                                 link->imsg->relationship_name.data);
                        errmsg = errbuf;
                        reason = FTR_INVALID_PARTNER;