]> git.proxmox.com Git - mirror_qemu.git/blobdiff - vl.c
Fix miscellaneous minor things, by Andre Przywara.
[mirror_qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index 70950f844a433b11e0d420c25f4efc984180d479..3c1a476147098dbefea943583e9f898b30f98c88 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -4423,7 +4423,8 @@ static NetSocketState *net_socket_fd_init(VLANState *vlan, int fd,
 {
     int so_type=-1, optlen=sizeof(so_type);
 
-    if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type, &optlen)< 0) {
+    if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type,
+        (socklen_t *)&optlen)< 0) {
        fprintf(stderr, "qemu: error: getsockopt(SO_TYPE) for fd=%d failed\n", fd);
        return NULL;
     }