diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-07-17 10:11:26 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-07-17 10:11:26 +0000 |
commit | 003334ca8fd4b95ebd29f7cc4862495ea88067f4 (patch) | |
tree | dccd5e2ad435f48963cab1cb3448c24bc9c4dcb6 /usr.sbin | |
parent | 0069eca54bbf02738f28a5b15a2610b59f1b69f1 (diff) | |
download | FreeBSD-src-003334ca8fd4b95ebd29f7cc4862495ea88067f4.zip FreeBSD-src-003334ca8fd4b95ebd29f7cc4862495ea88067f4.tar.gz |
When reporting errors binding IPv6 TCP sockets, don't call them UDP
sockets in the printf.
Fix two minor co-located whitespace glitches.
Product of: France
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 2fff366..249ab86 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -369,13 +369,13 @@ main(argc, argv) * by default on NFS sockets too. */ if (udp6sock != -1 && setsockopt(udp6sock, IPPROTO_IPV6, - IPV6_V6ONLY, &one, sizeof one) < 0){ + IPV6_V6ONLY, &one, sizeof one) < 0) { syslog(LOG_ERR, "can't disable v4-in-v6 on UDP socket"); exit(1); } if (tcp6sock != -1 && setsockopt(tcp6sock, IPPROTO_IPV6, - IPV6_V6ONLY, &one, sizeof one) < 0){ - syslog(LOG_ERR, "can't disable v4-in-v6 on UDP socket"); + IPV6_V6ONLY, &one, sizeof one) < 0) { + syslog(LOG_ERR, "can't disable v4-in-v6 on TCP socket"); exit(1); } udp6conf = getnetconfigent("udp6"); |