diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-11-26 22:38:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-11-26 22:38:11 +0000 |
commit | edb836f226a3e9d500cba400695648b0a3ee6585 (patch) | |
tree | 9bac1273d1f20dec6c26f4b7dc1eec6b498342c7 /apropos_db.h | |
parent | 0aba7e883febd4a1eb4d3f54a32041eccd254290 (diff) | |
download | mandoc-edb836f226a3e9d500cba400695648b0a3ee6585.tar.gz |
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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apropos_db.h b/apropos_db.h index 316d5669..3e0b347b 100644 --- a/apropos_db.h +++ b/apropos_db.h @@ -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 *); |