Skip to content

Commit e56a4b8

Browse files
committed
FreeBSD: solve lint issues
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent beacfee commit e56a4b8

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

cmd/podman/system/service_abi_common.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22

33
package system
44

5-
// Currently, we only need servicereaper on Linux to support slirp4netns.
6-
func maybeStartServiceReaper() {
7-
}
8-
95
// There is no cgroup on non linux.
106
func maybeMoveToSubCgroup() {}

libpod/container.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ type Container struct {
107107
runtime *Runtime
108108
ociRuntime OCIRuntime
109109

110-
rootlessPortSyncR *os.File
111-
rootlessPortSyncW *os.File
110+
// Platform-specific container fields
111+
containerPlatformState
112112

113113
// reservedPorts contains the fds for the bound ports when using the
114114
// bridge network mode as root.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//go:build freebsd && !remote
2+
3+
package libpod
4+
5+
// containerPlatformState holds platform-specific container state fields.
6+
// On FreeBSD, there are no platform-specific fields currently.
7+
type containerPlatformState struct{}

libpod/container_platform_linux.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//go:build linux && !remote
2+
3+
package libpod
4+
5+
import "os"
6+
7+
// containerPlatformState holds platform-specific container state fields.
8+
type containerPlatformState struct {
9+
// rootlessPortSyncR and rootlessPortSyncW are used for rootless port
10+
// mapping via RootlessKit.
11+
rootlessPortSyncR *os.File
12+
rootlessPortSyncW *os.File
13+
}

0 commit comments

Comments
 (0)