libct/int: make newTemplateConfig argument a struct

...so we can add more fields later.

This commit is mostly courtesy of

sed -i 's/newTemplateConfig(rootfs)/newTemplateConfig(\&tParam{rootfs: rootfs})/g'

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2020-09-28 16:55:21 -07:00
parent 0a9af3949f
commit 73d93eeb01
5 changed files with 60 additions and 56 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func testCheckpoint(t *testing.T, userns bool) {
}
defer remove(rootfs)
config := newTemplateConfig(rootfs)
config := newTemplateConfig(&tParam{rootfs: rootfs})
if userns {
config.UidMappings = []configs.IDMap{{HostID: 0, ContainerID: 0, Size: 1000}}