wireguard-go/src/misc.go
2017-06-30 14:41:08 +02:00

16 lines
168 B
Go

package main
func min(a uint, b uint) uint {
if a > b {
return b
}
return a
}
func sendSignal(c chan struct{}) {
select {
case c <- struct{}{}:
default:
}
}