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

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



  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 rfc2324 org>
---
 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


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