diff options
author | 2011-11-26 22:38:11 +0000 | |
---|---|---|
committer | 2011-11-26 22:38:11 +0000 | |
commit | 8f00108b9e7335a68e0dfa8b30abc8679c8c6a0a (patch) | |
tree | 07c306d3b0ee1bfc35064b2d154ab4a76df54392 /apropos_db.h | |
parent | 84a5530bc611551b040bc50e3aebcce2b63255ee (diff) | |
download | mandoc-8f00108b9e7335a68e0dfa8b30abc8679c8c6a0a.tar.gz mandoc-8f00108b9e7335a68e0dfa8b30abc8679c8c6a0a.tar.zst mandoc-8f00108b9e7335a68e0dfa8b30abc8679c8c6a0a.zip |
Sync to OpenBSD, mostly gratuitous and whitespace differences,
but a few serious things as well:
* -M overrides MANPATH
* -m prepends to the path
* put back database close calls that got lost in mandocdb
* missing sys/types.h in manpath.c, needed for size_t
ok kristaps@
Diffstat (limited to 'apropos_db.h')
-rw-r--r-- | apropos_db.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apropos_db.h b/apropos_db.h index b5744aff..85b4c9e6 100644 --- a/apropos_db.h +++ b/apropos_db.h @@ -1,4 +1,4 @@ -/* $Id: apropos_db.h,v 1.7 2011/11/23 09:55:28 kristaps Exp $ */ +/* $Id: apropos_db.h,v 1.8 2011/11/26 22:38:11 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -24,11 +24,11 @@ struct res { char *arch; /* arch (or empty string) */ char *desc; /* description (from Nd) */ unsigned int rec; /* record in index */ - /* + /* * The index volume. This indexes into the array of directories * searched for manual page databases. */ - unsigned int volume; + unsigned int volume; }; struct opts { @@ -40,8 +40,8 @@ __BEGIN_DECLS struct expr; -int apropos_search(int, char **, const struct opts *, - const struct expr *, size_t, void *, +int apropos_search(int, char **, const struct opts *, + const struct expr *, size_t, void *, void (*)(struct res *, size_t, void *)); struct expr *exprcomp(int, char *[], size_t *); void exprfree(struct expr *); |