Sfoglia il codice sorgente

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 anni fa
parent
commit
a3155743ad
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 }