summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-12-09 00:44:16 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-12-09 00:44:16 +0000
commitd7af13907fde0259ef6420806227c1926bf88173 (patch)
tree00959ef4bc651844c912039be103e3728016b2d7 /usr.bin
parentbd044d5d669d20a5ac1b44343af7d746d191b43d (diff)
sort output case-insensitively; from kristaps@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/apropos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/apropos.c b/usr.bin/mandoc/apropos.c
index 5660b1f6576..23ac54bc31a 100644
--- a/usr.bin/mandoc/apropos.c
+++ b/usr.bin/mandoc/apropos.c
@@ -1,4 +1,4 @@
-/* $Id: apropos.c,v 1.10 2011/11/29 22:30:56 schwarze Exp $ */
+/* $Id: apropos.c,v 1.11 2011/12/09 00:44:15 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -129,7 +129,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));
}