Retire EBADIOCTL in favor of ENOTTY

Change-Id: I6bd0e301d21ab7f2336e350e7e6e15d238c2c93d
This commit is contained in:
David van Moolenbroek
2014-03-01 09:04:51 +01:00
committed by sambuc
parent 4628a14fc7
commit b443e9244d
17 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ ssize_t sendmsg(int sock, const struct msghdr *msg, int flags)
}
r= ioctl(sock, NWIOGUDSSOTYPE, &uds_sotype);
if (r != -1 || (errno != ENOTTY && errno != EBADIOCTL)) {
if (r != -1 || errno != ENOTTY) {
if (r == -1) {
return r;
}