From a3155743adc80e4ce0c4e84fccad2649d6c14f00 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Thu, 2 Mar 2017 21:13:17 +1100 Subject: [PATCH] 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 --- profiles/seccomp/seccomp_unsupported.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/seccomp/seccomp_unsupported.go b/profiles/seccomp/seccomp_unsupported.go index f84b20b6d9..3c1d68b1fe 100644 --- a/profiles/seccomp/seccomp_unsupported.go +++ b/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 }