Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makemandb PR/50460: Abhinav Upadhyay: Fix legacy ap...



details:   https://anonhg.NetBSD.org/src/rev/a863b466ee09
branches:  trunk
changeset: 814436:a863b466ee09
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 20 17:31:09 2016 +0000

description:
PR/50460: Abhinav Upadhyay: Fix legacy apropos query to match both the name
and the one line description and delete extra args.

diffstat:

 usr.sbin/makemandb/apropos-utils.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 237e7c5a7f1b -r a863b466ee09 usr.sbin/makemandb/apropos-utils.c
--- a/usr.sbin/makemandb/apropos-utils.c        Sun Mar 20 16:39:36 2016 +0000
+++ b/usr.sbin/makemandb/apropos-utils.c        Sun Mar 20 17:31:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apropos-utils.c,v 1.19 2015/12/03 21:01:50 christos Exp $      */
+/*     $NetBSD: apropos-utils.c,v 1.20 2016/03/20 17:31:09 christos Exp $      */
 /*-
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
  * All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: apropos-utils.c,v 1.19 2015/12/03 21:01:50 christos Exp $");
+__RCSID("$NetBSD: apropos-utils.c,v 1.20 2016/03/20 17:31:09 christos Exp $");
 
 #include <sys/queue.h>
 #include <sys/stat.h>
@@ -559,9 +559,7 @@
                "%s"
                "%s",
                snippet_args[0], snippet_args[1], snippet_args[2],
-               wild,
-               section_clause ? section_clause : "",
-               snippet_args[0], snippet_args[1], snippet_args[2],
+               wild, wild,
                section_clause ? section_clause : "",
                limit_clause ? limit_clause : "");
                free(wild);



Home | Main Index | Thread Index | Old Index