vhost-user-scsi: use NULL pointer

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
Marc-André Lureau 2017-08-16 21:09:46 +02:00
parent 245792ddb7
commit 689a9945e6

View File

@ -684,7 +684,7 @@ static int vdev_scsi_run(vhost_scsi_dev_t *vdev_scsi)
assert(vdev_scsi->server_sock >= 0); assert(vdev_scsi->server_sock >= 0);
assert(vdev_scsi->loop); 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) { if (cli_sock < 0) {
perror("accept"); perror("accept");
return -1; return -1;