[libvirt] [PATCH 2/4] Build fix for 'bridge.c' if 'IFF_VNET_HDR' is disabled.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  The function 'brProbeVnetHdr()' added in commit
    b14bf853b4b0c3479d13c4842cea6faa3414c834
  does not use the 'tapfd' parameter.
  gcc does not like that. Make it happy.

Signed-off-by: Maximilian Wilhelm <max@xxxxxxxxxxx>
---
 src/bridge.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/bridge.c b/src/bridge.c
index 990a567..960db91 100644
--- a/src/bridge.c
+++ b/src/bridge.c
@@ -423,7 +423,7 @@ static int brSetInterfaceMtu(brControl *ctl,
  * Returns 0 in case of success or an errno code in case of failure.
  */
 static int
-brProbeVnetHdr(int tapfd)
+brProbeVnetHdr(int tapfd ATTRIBUTE_UNUSED)
 {
 #if defined(IFF_VNET_HDR) && defined(TUNGETFEATURES) && defined(TUNGETIFF)
     unsigned int features;
-- 
1.5.6.5

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]