Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 7c58b91fb..6b88f9105 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -526,7 +526,7 @@ cygwin_socket (int af, int type, int protocol)
set_errno (EPROTONOSUPPORT);
goto done;
}
- dev = type == SOCK_STREAM ? stream_dev : dgram_dev;
+ dev = af_local_dev;
break;
case AF_INET:
case AF_INET6:
@@ -535,7 +535,7 @@ cygwin_socket (int af, int type, int protocol)
set_errno (EINVAL);
goto done;
}
- dev = type == SOCK_STREAM ? tcp_dev : udp_dev;
+ dev = af_inet_dev;
break;
default:
set_errno (EAFNOSUPPORT);
@@ -2323,7 +2323,7 @@ socketpair (int af, int type, int protocol, int *sb)
set_errno (EPROTONOSUPPORT);
goto done;
}
- dev = type == SOCK_STREAM ? stream_dev : dgram_dev;
+ dev = af_local_dev;
break;
default:
set_errno (EAFNOSUPPORT);