diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2020-09-16 12:55:55 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2021-08-04 11:24:40 +0200 |
commit | b00b21b93c44c2f7cd067aeb61efae4d38360918 (patch) | |
tree | 95887a6866ddcb07773b87d09e99f45199177c70 /oci | |
parent | 94334153b5090567f1d8320b0356bfea3ca07cb4 (diff) | |
download | docker-b00b21b93c44c2f7cd067aeb61efae4d38360918.tar.gz |
oci/caps: rename some vars that conflicted with imports / built-ins
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'oci')
-rw-r--r-- | oci/caps/utils.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/oci/caps/utils.go b/oci/caps/utils.go index 2d119d4d8e..3d337b5dd1 100644 --- a/oci/caps/utils.go +++ b/oci/caps/utils.go @@ -12,14 +12,14 @@ var capabilityList Capabilities func init() { last := capability.CAP_LAST_CAP - for _, cap := range capability.List() { - if cap > last { + for _, c := range capability.List() { + if c > last { continue } capabilityList = append(capabilityList, &CapabilityMapping{ - Key: "CAP_" + strings.ToUpper(cap.String()), - Value: cap, + Key: "CAP_" + strings.ToUpper(c.String()), + Value: c, }, ) } @@ -46,8 +46,8 @@ func (c *CapabilityMapping) String() string { // GetAllCapabilities returns all of the capabilities func GetAllCapabilities() []string { output := make([]string, len(capabilityList)) - for i, capability := range capabilityList { - output[i] = capability.String() + for i, c := range capabilityList { + output[i] = c.String() } return output } |