aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apropos.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-07 16:08:55 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-07 16:08:55 +0000
commit7f93e283aa333cfe306cd3bdccbb59c63a0e832b (patch)
treeff1b6fa1f60c6ec61df5355e5bf3dd03f78ab923 /apropos.c
parent414118265270db74a6b53ec00d909ae7b5953121 (diff)
downloadmandoc-7f93e283aa333cfe306cd3bdccbb59c63a0e832b.tar.gz
mandoc-7f93e283aa333cfe306cd3bdccbb59c63a0e832b.tar.zst
mandoc-7f93e283aa333cfe306cd3bdccbb59c63a0e832b.zip
Apropos and man.cgi should strcasecmp their output sorting.
man.cgi should sort in the first place -- it wasn't before. Revert uppercasing of man.cgi title.
Diffstat (limited to 'apropos.c')
-rw-r--r--apropos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apropos.c b/apropos.c
index ae4cedca..b33855e1 100644
--- a/apropos.c
+++ b/apropos.c
@@ -1,4 +1,4 @@
-/* $Id: apropos.c,v 1.22 2011/11/29 10:53:42 kristaps Exp $ */
+/* $Id: apropos.c,v 1.23 2011/12/07 16:08:55 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -133,7 +133,7 @@ static int
cmp(const void *p1, const void *p2)
{
- return(strcmp(((const struct res *)p1)->title,
+ return(strcasecmp(((const struct res *)p1)->title,
((const struct res *)p2)->title));
}