]> Zhao Yanbai Git Server - minix.git/commitdiff
small fix for connect
authorPhilip Homburg <philip@cs.vu.nl>
Mon, 1 Aug 2005 14:47:24 +0000 (14:47 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Mon, 1 Aug 2005 14:47:24 +0000 (14:47 +0000)
lib/ip/connect.c

index c0dae5f83612a1c59779a153c1ed2af780f7b5cf..72f1a18cb6e3dd1efc10db2d35d95488b01b3ada 100644 (file)
@@ -120,6 +120,6 @@ static int _udp_connect(int socket, const struct sockaddr *address,
        udpopt.nwuo_remaddr= sinp->sin_addr.s_addr;
        udpopt.nwuo_remport= sinp->sin_port;
 
-       r= ioctl(socket, NWIOSUDPOPT, &udpopt) == -1)
+       r= ioctl(socket, NWIOSUDPOPT, &udpopt);
        return r;
 }