It was mentioned previously that the use of .Sx to refer to a section in
a different manual page is incorrect. I grepped through the src tree to
see if there were any cases of this and I found a couple.
diff --git a/share/man/man4/inet6.4 b/share/man/man4/inet6.4
index f64eedbfb..ddeb27136 100644
--- a/share/man/man4/inet6.4
+++ b/share/man/man4/inet6.4
@@ -161,11 +161,7 @@ For setups which tunnel IPv6 over IPv4,
see
.Xr gif 4 .
.Pp
-The
-.Sx INET6
-and
-.Sx TUNNEL
-sections of
+The INET6 and TUNNEL sections of
.Xr ifconfig 8
contain information relevant to IPv6 setups;
settings can be made permanent using
diff --git a/share/man/man4/ip6.4 b/share/man/man4/ip6.4
index 8acb7a762..a40b78f3a 100644
--- a/share/man/man4/ip6.4
+++ b/share/man/man4/ip6.4
@@ -94,7 +94,8 @@ struct ip6_hdr {
All fields are in network-byte order.
Any options specified (see
.Sx Options
-below) must also be specified in network-byte order.
+below)
+must also be specified in network-byte order.
.Pp
.Va ip6_flow
specifies the flow ID.
diff --git a/share/man/man9/syscall.9 b/share/man/man9/syscall.9
index 6a20b052e..1eb78609f 100644
--- a/share/man/man9/syscall.9
+++ b/share/man/man9/syscall.9
@@ -175,9 +175,9 @@ else
.Pp
The
.Dq SYSCALL_DEBUG
-parts of the code are explained in the section
+parts of the code are explained in the
.Sx Debugging
-later in the document.
+section below.
For the
.Dq KTRACE
portions of the code refer to the
diff --git a/usr.bin/ssh/ssh_config.5 b/usr.bin/ssh/ssh_config.5
index b8ba4022a..cb9018580 100644
--- a/usr.bin/ssh/ssh_config.5
+++ b/usr.bin/ssh/ssh_config.5
@@ -1327,9 +1327,7 @@ and
.Sq 4G ,
depending on the cipher.
The optional second value is specified in seconds and may use any of the
-units documented in the
-.Sx TIME FORMATS
-section of
+units documented in the TIME FORMATS section of
.Xr sshd_config 5 .
The default value for
.Cm RekeyLimit
diff --git a/usr.bin/ssh/sshd_config.5 b/usr.bin/ssh/sshd_config.5
index 9e97701ed..d018fd5a2 100644
--- a/usr.bin/ssh/sshd_config.5
+++ b/usr.bin/ssh/sshd_config.5
@@ -278,9 +278,7 @@ is not, then
will refuse to start.
.It Cm AuthorizedKeysFile
Specifies the file that contains the public keys used for user authentication.
-The format is described in the
-.Sx AUTHORIZED_KEYS FILE FORMAT
-section of
+The format is described in the AUTHORIZED_KEYS FILE FORMAT section of
.Xr sshd 8 .
Arguments to
.Cm AuthorizedKeysFile
diff --git a/usr.sbin/vmctl/vmctl.8 b/usr.sbin/vmctl/vmctl.8
index 144d774c8..0a7195a3c 100644
--- a/usr.sbin/vmctl/vmctl.8
+++ b/usr.sbin/vmctl/vmctl.8
@@ -208,8 +208,8 @@ configure a gateway address on the VM host side,
and run a simple DHCP/BOOTP server for the VM.
See
.Sx LOCAL INTERFACES
-below for more information on how addresses are calculated and assigned when
-using the
+below for more information on how addresses are calculated and assigned
+when using the
.Fl L
option.
.It Fl m Ar size
@@ -220,9 +220,7 @@ The default is 512M.
.It Fl n Ar switch
Add a network interface that is attached to the specified virtual
.Ar switch .
-See
-.Sx SWITCH CONFIGURATION
-in
+See the SWITCH CONFIGURATION section in
.Xr vm.conf 5
for more information.
.It Fl r Ar path
diff --git a/usr.sbin/vmd/vm.conf.5 b/usr.sbin/vmd/vm.conf.5
index 54eb9ed5e..fcb43d57a 100644
--- a/usr.sbin/vmd/vm.conf.5
+++ b/usr.sbin/vmd/vm.conf.5
@@ -331,11 +331,7 @@ is pre-configured using
.Xr hostname.if 5
or
.Xr ifconfig 8
-(see the
-.Sx BRIDGE
-and
-.Sx SWITCH
-sections in
+(see the BRIDGE and SWITCH sections in
.Xr ifconfig 8
accordingly).
When a VM is started, virtual network interfaces which are assigned to a
--
Stephen Gregoratto
PGP: 3FC6 3D0E 2801 C348 1C44 2D34 A80C 0F8E 8BAB EC8B