qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 12/27] vhost-user-scsi: use NULL pointer


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH 12/27] vhost-user-scsi: use NULL pointer
Date: Wed, 23 Aug 2017 14:47:37 -0300

On Wed, Aug 23, 2017 at 1:19 PM, Marc-André Lureau
<address@hidden> wrote:
> Signed-off-by: Marc-André Lureau <address@hidden>

Reviewed-by: Philippe Mathieu-Daudé <address@hidden>

> ---
>  contrib/vhost-user-scsi/vhost-user-scsi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c 
> b/contrib/vhost-user-scsi/vhost-user-scsi.c
> index 624efc24ca..596c1effa1 100644
> --- a/contrib/vhost-user-scsi/vhost-user-scsi.c
> +++ b/contrib/vhost-user-scsi/vhost-user-scsi.c
> @@ -686,7 +686,7 @@ static int vdev_scsi_run(vhost_scsi_dev_t *vdev_scsi)
>      assert(vdev_scsi->server_sock >= 0);
>      assert(vdev_scsi->loop);
>
> -    cli_sock = accept(vdev_scsi->server_sock, (void *)0, (void *)0);
> +    cli_sock = accept(vdev_scsi->server_sock, NULL, NULL);
>      if (cli_sock < 0) {
>          perror("accept");
>          return -1;
> --
> 2.14.1.146.gd35faa819
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]