summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-13 14:05:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-13 14:05:32 +0000
commit80cad0356226ad303de33e333b5fad9a23eb4983 (patch)
tree15f7fbe736105d1c292325d61a8b89912c81e007
parent2e998575504e6976302c4125100cc35e0817a84e (diff)
downloadmandoc-80cad0356226ad303de33e333b5fad9a23eb4983.tar.gz
sync with OpenBSD:
check sorting of .Xr's case-insensitively; no idea why this was different here
-rw-r--r--mdoc_validate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 35264a13..2e3d0066 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1989,7 +1989,8 @@ post_sh_see_also(POST_ARGS)
mdoc->parse, n->line, n->pos,
"%s(%s) after %s(%s)", name,
sec, lastname, lastsec);
- else if (cmp == 0 && strcmp(lastname, name) > 0)
+ else if (cmp == 0 &&
+ strcasecmp(lastname, name) > 0)
mandoc_vmsg(MANDOCERR_XR_ORDER,
mdoc->parse, n->line, n->pos,
"%s after %s", name, lastname);