浏览代码

profiles: seccomp: fix !seccomp build

Previously building with seccomp disabled would cause build failures
because of a mismatch in the type signatures of DefaultProfile().

Signed-off-by: Aleksa Sarai <asarai@suse.de>
Aleksa Sarai 8 年之前
父节点
当前提交
a3155743ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      profiles/seccomp/seccomp_unsupported.go

+ 1 - 1
profiles/seccomp/seccomp_unsupported.go

@@ -8,6 +8,6 @@ import (
 )
 
 // DefaultProfile returns a nil pointer on unsupported systems.
-func DefaultProfile(rs *specs.Spec) *types.Seccomp {
+func DefaultProfile() *types.Seccomp {
 	return nil
 }