svn commit: r294119 - user/ngie/socket-tests/tools/regression/sockets/unix_socket
Garrett Cooper
ngie at FreeBSD.org
Sat Jan 16 01:00:50 UTC 2016
Author: ngie
Date: Sat Jan 16 01:00:49 2016
New Revision: 294119
URL: https://svnweb.freebsd.org/changeset/base/294119
Log:
Similar to r294117, test for EPROTOTYPE, not EPROTONOSUPPORT, as the type
argument is the mismatch, not the protocol
Modified:
user/ngie/socket-tests/tools/regression/sockets/unix_socket/unix_socket.c
Modified: user/ngie/socket-tests/tools/regression/sockets/unix_socket/unix_socket.c
==============================================================================
--- user/ngie/socket-tests/tools/regression/sockets/unix_socket/unix_socket.c Sat Jan 16 00:45:48 2016 (r294118)
+++ user/ngie/socket-tests/tools/regression/sockets/unix_socket/unix_socket.c Sat Jan 16 01:00:49 2016 (r294119)
@@ -59,7 +59,7 @@ main(void)
close(sock);
errx(-1, "socket(PF_LOCAL, SOCK_RAW, 0) returned %d", sock);
}
- if (errno != EPROTONOSUPPORT)
+ if (errno != EPROTOTYPE)
err(-1, "socket(PF_LOCAL, SOCK_RAW, 0)");
if (socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) < 0)
More information about the svn-src-user
mailing list