Skip to content

Commit fcc8ed8

Browse files
committed
lif: rename internal types
This is a followup to https://go-review.googlesource.com/30576. Change-Id: I48bc5f1781275d2cef963876745fa59ac08b5eb5 Reviewed-on: https://go-review.googlesource.com/43070 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
1 parent feeb485 commit fcc8ed8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lif/defs_solaris.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const (
7575
sizeofLifIfinfoReq = C.sizeof_struct_lif_ifinfo_req
7676
)
7777

78-
type sysLifnum C.struct_lifnum
78+
type lifnum C.struct_lifnum
7979

8080
type lifreq C.struct_lifreq
8181

lif/link.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func Links(af int, name string) ([]Link, error) {
7070

7171
func links(eps []endpoint, name string) ([]Link, error) {
7272
var lls []Link
73-
lifn := sysLifnum{Flags: sysLIFC_NOXMIT | sysLIFC_TEMPORARY | sysLIFC_ALLZONES | sysLIFC_UNDER_IPMP}
73+
lifn := lifnum{Flags: sysLIFC_NOXMIT | sysLIFC_TEMPORARY | sysLIFC_ALLZONES | sysLIFC_UNDER_IPMP}
7474
lifc := lifconf{Flags: sysLIFC_NOXMIT | sysLIFC_TEMPORARY | sysLIFC_ALLZONES | sysLIFC_UNDER_IPMP}
7575
for _, ep := range eps {
7676
lifn.Family = uint16(ep.af)

lif/zsys_solaris_amd64.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const (
6565
sizeofLifIfinfoReq = 0x10
6666
)
6767

68-
type sysLifnum struct {
68+
type lifnum struct {
6969
Family uint16
7070
Pad_cgo_0 [2]byte
7171
Flags int32

0 commit comments

Comments
 (0)