diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-13 14:05:32 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-13 14:05:32 +0000 |
commit | 2623b4393620b67d1251b6af13d35b5fe9a6be80 (patch) | |
tree | 957e7d691f67181cefe2015cbfc3ca4d811f3c19 | |
parent | 6b92aed85943eeef405ab09af8f84adbb4766afc (diff) | |
download | mandoc-2623b4393620b67d1251b6af13d35b5fe9a6be80.tar.gz mandoc-2623b4393620b67d1251b6af13d35b5fe9a6be80.tar.zst mandoc-2623b4393620b67d1251b6af13d35b5fe9a6be80.zip |
sync with OpenBSD:
check sorting of .Xr's case-insensitively;
no idea why this was different here
-rw-r--r-- | mdoc_validate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 8c6b7b99..fd85a136 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.252 2014/10/13 14:01:21 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.253 2014/10/13 14:05:32 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |