Skip to content

Commit

Permalink
Remove disallowed linkname usages
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed May 18, 2024
1 parent 284cb5c commit e0ee7f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/control/tcp_keep_alive_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ func SetKeepAlivePeriod(idle time.Duration, interval time.Duration) Func {
}
}

//go:linkname roundDurationUp net.roundDurationUp
func roundDurationUp(d time.Duration, to time.Duration) time.Duration
func roundDurationUp(d time.Duration, to time.Duration) time.Duration {
return (d + to - 1) / to
}

0 comments on commit e0ee7f4

Please sign in to comment.