From: Ben Pfaff Date: Thu, 8 Jan 2009 22:59:42 +0000 (-0800) Subject: netdev: Remove unused 'netdev' parameter from dpif_add_router(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e247f5d9086aff6bd2988146840f81b435532e85;p=openvswitch netdev: Remove unused 'netdev' parameter from dpif_add_router(). Found by -Wunused-parameter. --- diff --git a/lib/dhcp-client.c b/lib/dhcp-client.c index 460fedf9..77d38190 100644 --- a/lib/dhcp-client.c +++ b/lib/dhcp-client.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford +/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation @@ -423,7 +423,7 @@ dhclient_configure_netdev(struct dhclient *cli) } if (!error && router.s_addr) { - error = netdev_add_router(cli->netdev, router); + error = netdev_add_router(router); if (error) { VLOG_ERR("failed to add default route to "IP_FMT" on %s: %s", IP_ARGS(&router), netdev_get_name(cli->netdev), diff --git a/lib/netdev.c b/lib/netdev.c index 08afc390..95adad78 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford +/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation @@ -793,9 +793,9 @@ netdev_set_in4(struct netdev *netdev, struct in_addr addr, struct in_addr mask) return error; } -/* Adds 'router' as a default gateway for 'netdev''s IP address. */ +/* Adds 'router' as a default IP gateway. */ int -netdev_add_router(struct netdev *netdev, struct in_addr router) +netdev_add_router(struct in_addr router) { struct in_addr any = { INADDR_ANY }; struct rtentry rt; diff --git a/lib/netdev.h b/lib/netdev.h index 28a96e44..d7afd83a 100644 --- a/lib/netdev.h +++ b/lib/netdev.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford +/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation @@ -83,7 +83,7 @@ int netdev_get_link_status(const struct netdev *); uint32_t netdev_get_features(struct netdev *, int); bool netdev_get_in4(const struct netdev *, struct in_addr *); int netdev_set_in4(struct netdev *, struct in_addr addr, struct in_addr mask); -int netdev_add_router(struct netdev *, struct in_addr router); +int netdev_add_router(struct in_addr router); bool netdev_get_in6(const struct netdev *, struct in6_addr *); int netdev_get_flags(const struct netdev *, enum netdev_flags *); int netdev_set_flags(struct netdev *, enum netdev_flags, bool permanent);