diff options
| author | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-08-23 18:51:23 -0700 |
|---|---|---|
| committer | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-08-23 18:51:23 -0700 |
| commit | d617d7725ce8b91df2152d6539da10c401c59325 (patch) | |
| tree | 44fbd625f1cc6fef59058b04bb1f99ce3fec75ce /util | |
| parent | b15792b8d7c197d84970415fd2525c51aee3996c (diff) | |
pam_fscrypt: Session accounting completed
Diffstat (limited to 'util')
| -rw-r--r-- | util/util.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/util.go b/util/util.go index 14d23e2..c02ea0e 100644 --- a/util/util.go +++ b/util/util.go @@ -82,6 +82,14 @@ func MinInt(a, b int) int { return b } +// MaxInt returns the greater of a and b. +func MaxInt(a, b int) int { + if a > b { + return a + } + return b +} + // MinInt64 returns the lesser of a and b. func MinInt64(a, b int64) int64 { if a < b { |