Commit 34e604dd authored by Mikio Hara's avatar Mikio Hara

go.net/ipv4: fix bit clear

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9582043
parent 4c1c96f7
......@@ -18,7 +18,7 @@ type rawOpt struct {
func (o *rawOpt) lock() { o.mu.Lock() }
func (o *rawOpt) unlock() { o.mu.Unlock() }
func (o *rawOpt) set(f ControlFlags) { o.cflags |= f }
func (o *rawOpt) clear(f ControlFlags) { o.cflags ^= f }
func (o *rawOpt) clear(f ControlFlags) { o.cflags &^= f }
func (o *rawOpt) isset(f ControlFlags) bool { return o.cflags&f != 0 }
type ControlFlags uint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment