mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
netlink: Move an INET-only variable under #if.
This fixes the LINT-NOIP build.
This commit is contained in:
parent
e0c86f5c2f
commit
ac6dd01259
1 changed files with 2 additions and 0 deletions
|
|
@ -1258,7 +1258,9 @@ rtnl_handle_addr(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
|
|||
return (ENOENT);
|
||||
}
|
||||
|
||||
#if defined(INET) || defined(INET6)
|
||||
bool new = hdr->nlmsg_type == NL_RTM_NEWADDR;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* TODO: Properly handle NLM_F_CREATE / NLM_F_EXCL.
|
||||
|
|
|
|||
Loading…
Reference in a new issue