diff mbox

Fix build with stub USB backend

Message ID 4F5248EA.9000601@freebsd.org
State New
Headers show

Commit Message

Nathan Whitehorn March 3, 2012, 4:38 p.m. UTC
Recent changes to the signature of usb_host_device_open() have broken 
the stub USB backend. This updates the stub version of 
usb_host_device_open() to correspond to the new API.

Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
---
  usb-stub.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

--
1.7.9

Comments

Andreas Färber March 3, 2012, 6:03 p.m. UTC | #1
Am 03.03.2012 17:38, schrieb Nathan Whitehorn:
> Recent changes to the signature of usb_host_device_open() have broken
> the stub USB backend. This updates the stub version of
> usb_host_device_open() to correspond to the new API.
> 
> Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>

Looks like a duplicate, a similar patch was just applied.

Andreas

> ---
>  usb-stub.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/usb-stub.c b/usb-stub.c
> index 9c3fcea..b4e10c1 100644
> --- a/usb-stub.c
> +++ b/usb-stub.c
> @@ -41,7 +41,7 @@ void usb_host_info(Monitor *mon)
>  }
> 
>  /* XXX: modify configure to compile the right host driver */
> -USBDevice *usb_host_device_open(const char *devname)
> +USBDevice *usb_host_device_open(USBBus *bus, const char *devname)
>  {
>      return NULL;
>  }
> -- 
> 1.7.9
diff mbox

Patch

diff --git a/usb-stub.c b/usb-stub.c
index 9c3fcea..b4e10c1 100644
--- a/usb-stub.c
+++ b/usb-stub.c
@@ -41,7 +41,7 @@  void usb_host_info(Monitor *mon)
  }

  /* XXX: modify configure to compile the right host driver */
-USBDevice *usb_host_device_open(const char *devname)
+USBDevice *usb_host_device_open(USBBus *bus, const char *devname)
  {
      return NULL;
  }