mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-23 06:22:56 +00:00
Fix vendor package while waiting
I can't be bothered to go through the mountain of steps to commit this tiny change. https://github.com/golang/go/issues/20055
This commit is contained in:
parent
c61a6ec8b6
commit
e9cb88e15a
4
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@ -57,7 +57,7 @@ func nametomib(name string) (mib []_C_int, err error) {
|
||||
}
|
||||
|
||||
func direntIno(buf []byte) (uint64, bool) {
|
||||
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||
}
|
||||
|
||||
func direntReclen(buf []byte) (uint64, bool) {
|
||||
@ -65,7 +65,7 @@ func direntReclen(buf []byte) (uint64, bool) {
|
||||
if !ok {
|
||||
return 0, false
|
||||
}
|
||||
return (16 + namlen + 1 + 7) & ^7, true
|
||||
return (16 + namlen + 1 + 7) &^ 7, true
|
||||
}
|
||||
|
||||
func direntNamlen(buf []byte) (uint64, bool) {
|
||||
|
Loading…
Reference in New Issue
Block a user