diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-01 04:14:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-01 04:14:14 +0000 |
commit | 0abc048e8633d579be3759bfd83685b7afa76df3 (patch) | |
tree | 7fc774d10096a94d6bcc28223d90a5de0a0e704f /mandoc.h | |
parent | 5a0753265874ce0fe8a026f0557553bd1fd6b036 (diff) | |
download | mandoc-0abc048e8633d579be3759bfd83685b7afa76df3.tar.gz |
The file read.c is part of the parser, so it cannot include main.h,
which is not part of the parser. Besides, the parser *does* modify
the input buffer, so marking it "const" in the mparse_readmem()
interface is an outright lie. Fix all this by killing the const,
the UNCONST, and the bogus inclusion.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -437,7 +437,7 @@ void mparse_free(struct mparse *); void mparse_keep(struct mparse *); enum mandoclevel mparse_open(struct mparse *, int *, const char *); enum mandoclevel mparse_readfd(struct mparse *, int, const char *); -enum mandoclevel mparse_readmem(struct mparse *, const void *, size_t, +enum mandoclevel mparse_readmem(struct mparse *, void *, size_t, const char *); void mparse_reset(struct mparse *); void mparse_result(struct mparse *, |