From 9d1cc7d56acf1989d73d216576156b234fd8e2ad Mon Sep 17 00:00:00 2001 From: Madhu Venugopal Date: Thu, 4 Jun 2015 04:32:10 -0700 Subject: [PATCH] Fixing a few go-vet issues Signed-off-by: Madhu Venugopal --- libnetwork/drivers/bridge/bridge_test.go | 2 +- libnetwork/endpoint_info.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libnetwork/drivers/bridge/bridge_test.go b/libnetwork/drivers/bridge/bridge_test.go index aba46977e6..6597ca1b96 100644 --- a/libnetwork/drivers/bridge/bridge_test.go +++ b/libnetwork/drivers/bridge/bridge_test.go @@ -159,7 +159,7 @@ func (te *testEndpoint) SetResolvConfPath(path string) error { } func (te *testEndpoint) AddStaticRoute(destination *net.IPNet, routeType int, nextHop net.IP, interfaceID int) error { - te.routes = append(te.routes, types.StaticRoute{destination, routeType, nextHop, interfaceID}) + te.routes = append(te.routes, types.StaticRoute{Destination: destination, RouteType: routeType, NextHop: nextHop, InterfaceID: interfaceID}) return nil } diff --git a/libnetwork/endpoint_info.go b/libnetwork/endpoint_info.go index 1c7a85cce6..bd989f291b 100644 --- a/libnetwork/endpoint_info.go +++ b/libnetwork/endpoint_info.go @@ -155,7 +155,7 @@ func (ep *endpoint) AddStaticRoute(destination *net.IPNet, routeType int, nextHo ep.Lock() defer ep.Unlock() - r := types.StaticRoute{destination, routeType, nextHop, interfaceID} + r := types.StaticRoute{Destination: destination, RouteType: routeType, NextHop: nextHop, InterfaceID: interfaceID} if routeType == types.NEXTHOP { // If the route specifies a next-hop, then it's loosely routed (i.e. not bound to a particular interface).