From: Ben Pfaff Date: Thu, 8 Jan 2009 23:00:13 +0000 (-0800) Subject: netdev: Remove unused 'fd' parameter from set_flags(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=799cc5aef53d88401efffded5c1b4a702f3afc23;p=openvswitch netdev: Remove unused 'fd' parameter from set_flags(). Found by -Wunused-parameter. --- diff --git a/lib/netdev.c b/lib/netdev.c index 95adad78..67966015 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -114,7 +114,7 @@ static int do_open_netdev(const char *name, int ethertype, int tap_fd, struct netdev **netdev_); static int restore_flags(struct netdev *netdev); static int get_flags(const struct netdev *, int fd, int *flagsp); -static int set_flags(struct netdev *, int fd, int flags); +static int set_flags(struct netdev *, int flags); /* Obtains the IPv6 address for 'name' into 'in6'. */ static void @@ -880,7 +880,7 @@ do_update_flags(struct netdev *netdev, int fd, enum netdev_flags off, netdev->changed_flags |= new_flags ^ old_flags; } if (new_flags != old_flags) { - error = set_flags(netdev, fd, new_flags); + error = set_flags(netdev, new_flags); } return error; } @@ -1022,7 +1022,7 @@ get_flags(const struct netdev *netdev, int fd, int *flags) } static int -set_flags(struct netdev *netdev, int fd, int flags) +set_flags(struct netdev *netdev, int flags) { struct ifreq ifr; strncpy(ifr.ifr_name, netdev->name, sizeof ifr.ifr_name);