From d7af13907fde0259ef6420806227c1926bf88173 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 9 Dec 2011 00:44:16 +0000 Subject: sort output case-insensitively; from kristaps@ --- usr.bin/mandoc/apropos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') 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 * Copyright (c) 2011 Ingo Schwarze @@ -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)); } -- cgit v1.2.3