diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-08-16 21:09:46 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-10-10 23:31:09 +0200 |
commit | 689a9945e658b714097652413976b639798150c8 (patch) | |
tree | f4dd6773fd9bad3ebd4d1a633e33aa81535c5d4e | |
parent | 245792ddb71df93ef4f8b25834734c8dfa17af9e (diff) |
vhost-user-scsi: use NULL pointer
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
-rw-r--r-- | contrib/vhost-user-scsi/vhost-user-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c index a9a4066eeb..dd0de1fc89 100644 --- a/contrib/vhost-user-scsi/vhost-user-scsi.c +++ b/contrib/vhost-user-scsi/vhost-user-scsi.c @@ -684,7 +684,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; |