mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
Fix build after commit e3ba4025
Commit e3ba4025 introduced a few build errors with HAVE_LIBNL undefined.
This commit is contained in:
parent
d2a9d55f45
commit
118cfc2535
@ -1071,7 +1071,7 @@ int virNetDevVPortProfileAssociate(const char *macvtap_ifname ATTRIBUTE_UNUSED,
|
||||
const char *linkdev ATTRIBUTE_UNUSED,
|
||||
const unsigned char *vmuuid ATTRIBUTE_UNUSED,
|
||||
enum virNetDevVPortProfileOp vmOp ATTRIBUTE_UNUSED,
|
||||
bool setlink_only)
|
||||
bool setlink_only ATTRIBUTE_UNUSED)
|
||||
{
|
||||
virReportSystemError(ENOSYS, "%s",
|
||||
_("Virtual port profile association not supported on this platform"));
|
||||
|
@ -571,7 +571,7 @@ int virNetlinkEventServiceStart(void)
|
||||
* virNetlinkEventServiceIsRunning: returns if the netlink event
|
||||
* service is running.
|
||||
*/
|
||||
int virNetlinkEventServiceIsRunning(void)
|
||||
bool virNetlinkEventServiceIsRunning(void)
|
||||
{
|
||||
# if defined(__linux__) && !defined(HAVE_LIBNL)
|
||||
netlinkError(VIR_ERR_INTERNAL_ERROR,
|
||||
@ -585,9 +585,10 @@ int virNetlinkEventServiceIsRunning(void)
|
||||
* virNetlinkEventAddClient: register a callback for handling of
|
||||
* netlink messages
|
||||
*/
|
||||
int virNetlinkEventAddClient(virNetlinkEventHandleCallback cb,
|
||||
virNetlinkEventRemoveCallback cb,
|
||||
void *opaque, const unsigned char *macaddr)
|
||||
int virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB ATTRIBUTE_UNUSED,
|
||||
virNetlinkEventRemoveCallback removeCB ATTRIBUTE_UNUSED,
|
||||
void *opaque ATTRIBUTE_UNUSED,
|
||||
const unsigned char *macaddr ATTRIBUTE_UNUSED)
|
||||
{
|
||||
netlinkError(VIR_ERR_INTERNAL_ERROR,
|
||||
"%s",
|
||||
@ -602,7 +603,8 @@ int virNetlinkEventAddClient(virNetlinkEventHandleCallback cb,
|
||||
/**
|
||||
* virNetlinkEventRemoveClient: unregister a callback from a netlink monitor
|
||||
*/
|
||||
int virNetlinkEventRemoveClient(int watch, const unsigned char *macaddr)
|
||||
int virNetlinkEventRemoveClient(int watch ATTRIBUTE_UNUSED,
|
||||
const unsigned char *macaddr ATTRIBUTE_UNUSED)
|
||||
{
|
||||
netlinkError(VIR_ERR_INTERNAL_ERROR,
|
||||
"%s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user