mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
dcbd5e04b7
commit
9a03967f0a
2 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue