mirror of
https://github.com/golang/go
synced 2024-11-23 00:00:07 -07:00
remove init
This commit is contained in:
parent
73d7f4f8c3
commit
735f3364a4
@ -16,11 +16,6 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func init() {
|
||||
const expected_size = unsafe.Sizeof(C.struct___res_state{})
|
||||
const got_size = unsafe.Sizeof(unix.ResState{})
|
||||
|
||||
// This will cause a compile error when the size of
|
||||
// unix.ResState is too small.
|
||||
var _ [got_size - expected_size]byte
|
||||
}
|
||||
// This will cause a compile error when the size of
|
||||
// unix.ResState is too small.
|
||||
type _ [unsafe.Sizeof(unix.ResState{}) - unsafe.Sizeof(C.struct___res_state{})]byte
|
||||
|
Loading…
Reference in New Issue
Block a user