From: Giuseppe Lettieri Date: Thu, 30 Aug 2012 13:31:57 +0000 (+0200) Subject: fix some warnings X-Git-Tag: sliver-openvswitch-1.8.90-0~52 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=57406936ba65c2cd83b2c3de62f4b69889c3f29b fix some warnings --- 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];