Commit 931f03ee60ea341ee67ded1f0e269bc4c2420940
1 parent
67cd24a8
Fix typo, by Linus Nordberg.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2737 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
vl.c
| @@ -3922,7 +3922,7 @@ static NetSocketState *net_socket_fd_init(VLANState *vlan, int fd, | @@ -3922,7 +3922,7 @@ static NetSocketState *net_socket_fd_init(VLANState *vlan, int fd, | ||
| 3922 | int so_type=-1, optlen=sizeof(so_type); | 3922 | int so_type=-1, optlen=sizeof(so_type); |
| 3923 | 3923 | ||
| 3924 | if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type, &optlen)< 0) { | 3924 | if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type, &optlen)< 0) { |
| 3925 | - fprintf(stderr, "qemu: error: setsockopt(SO_TYPE) for fd=%d failed\n", fd); | 3925 | + fprintf(stderr, "qemu: error: getsockopt(SO_TYPE) for fd=%d failed\n", fd); |
| 3926 | return NULL; | 3926 | return NULL; |
| 3927 | } | 3927 | } |
| 3928 | switch(so_type) { | 3928 | switch(so_type) { |