diff options
| author | Dan Peterson <dpiddy@gmail.com> | 2016-08-16 13:33:27 -0300 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2016-08-17 03:12:29 +0000 |
| commit | 00b779aeed9e0345e4bdbb38c85df63a6352b954 (patch) | |
| tree | f7b1cdfda140fdfb52e08bdad2c1ce073704b546 /src/net/interface.go | |
| parent | 9c13eb3729988af8be1fd00175bacdd20c7d4206 (diff) | |
| download | go-00b779aeed9e0345e4bdbb38c85df63a6352b954.tar.xz | |
net: simplify internal dtoi and xtoi funcs
Callers pass strings sliced as necessary instead of giving
an offset.
Fixes #16350
Change-Id: I7ba896f6ff09e0fd0094ca6c5af5d9a81622f15e
Reviewed-on: https://go-review.googlesource.com/27206
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/net/interface.go')
| -rw-r--r-- | src/net/interface.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/interface.go b/src/net/interface.go index 52b857c65f..4947b52faf 100644 --- a/src/net/interface.go +++ b/src/net/interface.go @@ -215,7 +215,7 @@ func zoneToInt(zone string) int { defer zoneCache.RUnlock() index, ok := zoneCache.toIndex[zone] if !ok { - index, _, _ = dtoi(zone, 0) + index, _, _ = dtoi(zone) } return index } |
