summaryrefslogtreecommitdiffstats
path: root/man.3
diff options
context:
space:
mode:
Diffstat (limited to 'man.3')
-rw-r--r--man.36
1 files changed, 4 insertions, 2 deletions
diff --git a/man.3 b/man.3
index b1551914..d607a7d2 100644
--- a/man.3
+++ b/man.3
@@ -34,7 +34,7 @@
.Vt extern const char * const * man_macronames;
.Ft "struct man *"
.Fo man_alloc
-.Fa "const struct regset *regs"
+.Fa "struct regset *regs"
.Fa "void *data"
.Fa "int pflags"
.Fa "mandocmsg msgs"
@@ -291,14 +291,16 @@ on the finished parse tree with
.Fn parsed .
This example does not error-check nor free memory upon failure.
.Bd -literal -offset indent
+struct regset regs;
struct man *man;
struct man_node *node;
char *buf;
size_t len;
int line;
+bzero(&regs, sizeof(struct regset));
line = 1;
-man = man_alloc(NULL, 0, NULL);
+man = man_alloc(&regs, NULL, 0, NULL);
buf = NULL;
alloc_len = 0;