From 4d06bbd2e6bf9b10e7bf6fcb30d4d7956e2d682c 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 --- drivers/bridge/bridge_test.go | 2 +- endpoint_info.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bridge/bridge_test.go b/drivers/bridge/bridge_test.go index aba4697..6597ca1 100644 --- a/drivers/bridge/bridge_test.go +++ b/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/endpoint_info.go b/endpoint_info.go index 1c7a85c..bd989f2 100644 --- a/endpoint_info.go +++ b/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).