Skip to content

Commit

Permalink
Make mandb path configurable. makemandb (and related tools) use
Browse files Browse the repository at this point in the history
the path from the _mandb variable from man.conf now.

Set _mandb in man.conf to same value as was used before.

Patch by me, committed by wiz. (Diff imported from NetBSD CVS repo.)
  • Loading branch information
abhinav-upadhyay committed Dec 23, 2012
1 parent 7f4d976 commit 1e1b025
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apropos-utils.h
@@ -1,4 +1,4 @@
/* $NetBSD: apropos-utils.h,v 1.3 2012/05/07 11:18:16 wiz Exp $ */
/* $NetBSD: apropos-utils.h,v 1.4 2012/10/06 15:33:59 wiz Exp $ */
/*-
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
* All rights reserved.
Expand Down Expand Up @@ -35,7 +35,7 @@

#include "sqlite3.h"

#define DBPATH "/var/db/man.db"
#define MANCONF "/etc/man.conf"
#define SECMAX 9

/* Flags for opening the database */
Expand Down Expand Up @@ -84,8 +84,9 @@ typedef struct query_args {
char *lower(char *);
void concat(char **, const char *);
void concat2(char **, const char *, size_t);
sqlite3 *init_db(int);
sqlite3 *init_db(int, const char *);
void close_db(sqlite3 *);
char *get_dbpath(const char *);
int run_query(sqlite3 *, const char *[3], query_args *);
int run_query_html(sqlite3 *, query_args *);
int run_query_pager(sqlite3 *, query_args *);
Expand Down

0 comments on commit 1e1b025

Please sign in to comment.