Skip to content

Commit

Permalink
Merge pull request #2399 from pqarmitage/updates
Browse files Browse the repository at this point in the history
vrrp: correct some parameter/return types
  • Loading branch information
pqarmitage committed Apr 1, 2024
2 parents 2706d6a + 4dda7c7 commit 84df249
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ AC_CHECK_DECLS([IPV6_MULTICAST_ALL],
[
add_system_opt([IPV6_MULTICAST_ALL])
# We can't include <linux/in6.h> before <netinet/in.h> otherwise there a a lot of
# We can't include <linux/in6.h> before <netinet/in.h> otherwise there are a lot of
# duplicate definitions. If we include them the other way around and <netinet/in.h>
# doesn't define IPV6_MULTICAST_ALL, then we don't get the definition from
# <linux/in6.h> due to the UAPI guards to stop compile errors.
Expand Down
2 changes: 1 addition & 1 deletion keepalived/vrrp/vrrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3792,7 +3792,7 @@ vrrp_complete_instance(vrrp_t * vrrp)
memcpy(addr_vrrp.ll_addr, vrrp->ll_addr, sizeof(vrrp->ll_addr));
}

netlink_link_add_vmac(&addr_vrrp, false);
netlink_link_add_vmac(&addr_vrrp, NULL);
} else {
ifp->is_ours = true;
ifp->if_type = IF_TYPE_MACVLAN;
Expand Down
2 changes: 1 addition & 1 deletion keepalived/vrrp/vrrp_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ setup_interface(vrrp_t *vrrp)
if (!vrrp->ifp->ifindex) {
/* coverity[var_deref_model] - vrrp->configured_ifp is not NULL for VMAC */
if (__test_bit(VRRP_VMAC_BIT, &vrrp->flags) &&
!netlink_link_add_vmac(vrrp, false))
!netlink_link_add_vmac(vrrp, NULL))
return;
#ifdef _HAVE_VRRP_IPVLAN_
/* coverity[var_deref_model] - vrrp->configured_ifp is not NULL for IPVLAN */
Expand Down
2 changes: 1 addition & 1 deletion lib/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,7 @@ check_definition(const char *buf)
char *str;

if (buf[0] != '$')
return false;
return NULL;

if (!isalpha(buf[1]) && buf[1] != '_')
return NULL;
Expand Down

0 comments on commit 84df249

Please sign in to comment.