Explorar o código

Fix declarations of of execdriver/native.NewDriver to have the same signature.

This change is done so that driver_unsupported.go and driver_unsupported_nocgo.go
declare the same signature for NewDriver as driver.go.

Fixes #19032

Signed-off-by: Lukas Waslowski <cr7pt0gr4ph7@gmail.com>
Lukas Waslowski %!s(int64=9) %!d(string=hai) anos
pai
achega
9a03967f0a

+ 1 - 1
daemon/execdriver/native/driver_unsupported.go

@@ -9,6 +9,6 @@ import (
 )
 
 // NewDriver returns a new native driver, called from NewDriver of execdriver.
-func NewDriver(root, initPath string) (execdriver.Driver, error) {
+func NewDriver(root string, options []string) (execdriver.Driver, error) {
 	return nil, fmt.Errorf("native driver not supported on non-linux")
 }

+ 1 - 1
daemon/execdriver/native/driver_unsupported_nocgo.go

@@ -9,6 +9,6 @@ import (
 )
 
 // NewDriver returns a new native driver, called from NewDriver of execdriver.
-func NewDriver(root, initPath string) (execdriver.Driver, error) {
+func NewDriver(root string, options []string) (execdriver.Driver, error) {
 	return nil, fmt.Errorf("native driver not supported on non-linux")
 }