summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-05 19:30:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-05 19:30:49 +0000
commit0624c9ad95223c7844a47eca56f838193ad71a0b (patch)
tree394f9199da98ceee327b3dce3bda6f1de6b3c4fa
parent97fd5f62e106576703ae6adde42a8fa2a7fab579 (diff)
downloadmandoc-0624c9ad95223c7844a47eca56f838193ad71a0b.tar.gz
Fixed man.3 mdoc.3 const-nesses.
-rw-r--r--man.34
-rw-r--r--mdoc.36
2 files changed, 5 insertions, 5 deletions
diff --git a/man.3 b/man.3
index d3f57ba1..86b4eced 100644
--- a/man.3
+++ b/man.3
@@ -40,9 +40,9 @@
.Ft int
.Fn man_parseln "struct man *man" "int line" "char *buf"
.Ft "const struct man_node *"
-.Fn man_node "struct man *man"
+.Fn man_node "const struct man *man"
.Ft "const struct man_meta *"
-.Fn man_meta "struct man *man"
+.Fn man_meta "const struct man *man"
.Ft int
.Fn man_endparse "struct man *man"
.\" SECTION
diff --git a/mdoc.3 b/mdoc.3
index 34277ab6..6abb2e21 100644
--- a/mdoc.3
+++ b/mdoc.3
@@ -41,9 +41,9 @@
.Ft int
.Fn mdoc_parseln "struct mdoc *mdoc" "int line" "char *buf"
.Ft "const struct mdoc_node *"
-.Fn mdoc_node "struct mdoc *mdoc"
+.Fn mdoc_node "const struct mdoc *mdoc"
.Ft "const struct mdoc_meta *"
-.Fn mdoc_meta "struct mdoc *mdoc"
+.Fn mdoc_meta "const struct mdoc *mdoc"
.Ft int
.Fn mdoc_endparse "struct mdoc *mdoc"
.\" SECTION
@@ -265,7 +265,7 @@ will truncate the file's last character (see
Further, this example does not error-check nor free memory upon failure.
.Bd -literal -offset "XXXX"
struct mdoc *mdoc;
-struct mdoc_node *node;
+const struct mdoc_node *node;
char *buf;
size_t len;
int line;