diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-04-10 17:58:03 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-04-10 17:58:03 +0000 |
commit | 08582c8e50ac2b99c049b9757b52bf15e9d23a31 (patch) | |
tree | 8fc4f2b0153e93c87715c0813d8b213eccf8a526 | |
parent | 30b4cfab1bd8ac93fab7ca92f159c64f4b69354a (diff) | |
download | bcm5719-llvm-08582c8e50ac2b99c049b9757b52bf15e9d23a31.tar.gz bcm5719-llvm-08582c8e50ac2b99c049b9757b52bf15e9d23a31.zip |
[msan] Replace AF_INET with AF_UNIX to avoid IPv4 vs IPv6 issues.
Summary: This reverts commit 79cf16bf224d6ac9fb9e0356c5947ebc4fd6ff92.
Reviewers: eugenis
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D31895
llvm-svn: 299860
-rw-r--r-- | compiler-rt/test/msan/ioctl.cc | 2 | ||||
-rw-r--r-- | compiler-rt/test/msan/ioctl_custom.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/msan/ioctl.cc b/compiler-rt/test/msan/ioctl.cc index e21ef636c60..66ac6e95b66 100644 --- a/compiler-rt/test/msan/ioctl.cc +++ b/compiler-rt/test/msan/ioctl.cc @@ -8,7 +8,7 @@ #include <unistd.h> int main(int argc, char **argv) { - int fd = socket(AF_INET, SOCK_DGRAM, 0); + int fd = socket(AF_UNIX, SOCK_DGRAM, 0); unsigned int z; int res = ioctl(fd, FIOGETOWN, &z); diff --git a/compiler-rt/test/msan/ioctl_custom.cc b/compiler-rt/test/msan/ioctl_custom.cc index 6df22d75e95..eaab6338458 100644 --- a/compiler-rt/test/msan/ioctl_custom.cc +++ b/compiler-rt/test/msan/ioctl_custom.cc @@ -14,7 +14,7 @@ #include <unistd.h> int main(int argc, char **argv) { - int fd = socket(AF_INET, SOCK_STREAM, 0); + int fd = socket(AF_UNIX, SOCK_STREAM, 0); struct ifreq ifreqs[20]; struct ifconf ifc; |