From 57406936ba65c2cd83b2c3de62f4b69889c3f29b Mon Sep 17 00:00:00 2001
From: Giuseppe Lettieri <g.lettieri@iet.unipi.it>
Date: Thu, 30 Aug 2012 15:31:57 +0200
Subject: [PATCH] fix some warnings

---
 planetlab/pltap-ovs/pltap-ovs.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/planetlab/pltap-ovs/pltap-ovs.c b/planetlab/pltap-ovs/pltap-ovs.c
index 55eb7eaa6..e1660b09d 100644
--- a/planetlab/pltap-ovs/pltap-ovs.c
+++ b/planetlab/pltap-ovs/pltap-ovs.c
@@ -15,6 +15,8 @@
 
 #define OVS_SOCK "/var/run/pl-ovs.control"
 
+void send_fd(int p, int fd, char* vif_name);
+
 char *appname;
 
 #define ERROR(msg)								\
@@ -24,6 +26,7 @@ char *appname;
         } while (0)
 
 
+static
 int send_vif_fd(int sock_fd, int vif_fd, char *vif_name)
 {
         int retval;
@@ -105,12 +108,15 @@ int main(int argc, char* argv[])
         char if_name[IFNAMSIZ];
         int p[2]; // synchronization pipe
         char dummy;
+	int tun_fd;
+
+	(void) argc; // unused
 
         if (pipe(p) < 0) {
                 ERROR("pipe");
         }
 
-        int tun_fd = tun_alloc(IFF_TAP, if_name);
+        tun_fd = tun_alloc(IFF_TAP, if_name);
 
         appname = argv[0];
 
-- 
2.47.0