summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/tbl_data.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2013-05-31 21:37:08 +0000
committerschwarze <schwarze@openbsd.org>2013-05-31 21:37:08 +0000
commitc7497e73a99e85f34065287f9290bb2910b1aa6c (patch)
treea303e9519c25c27ddfd47d6f713ec8857ae66a46 /usr.bin/mandoc/tbl_data.c
parentCorrect sequencing in ca_activate function. Some operations were in the (diff)
downloadwireguard-openbsd-c7497e73a99e85f34065287f9290bb2910b1aa6c.tar.xz
wireguard-openbsd-c7497e73a99e85f34065287f9290bb2910b1aa6c.zip
The name "struct tbl" was badly misleading for two reasons:
1) This struct almost exclusively contains the table options. 2) Information about the table as a whole is actually in "struct tbl_node". Besides, "struct tbl" was almost impossible to search for. So rename it to "struct tbl_opts". No functional change.
Diffstat (limited to '')
-rw-r--r--usr.bin/mandoc/tbl_data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/tbl_data.c b/usr.bin/mandoc/tbl_data.c
index 861f06f0786..a70ac9e06d3 100644
--- a/usr.bin/mandoc/tbl_data.c
+++ b/usr.bin/mandoc/tbl_data.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_data.c,v 1.12 2012/05/26 20:03:34 schwarze Exp $ */
+/* $Id: tbl_data.c,v 1.13 2013/05/31 21:37:09 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -181,7 +181,7 @@ newspan(struct tbl_node *tbl, int line, struct tbl_row *rp)
dp = mandoc_calloc(1, sizeof(struct tbl_span));
dp->line = line;
- dp->tbl = &tbl->opts;
+ dp->opts = &tbl->opts;
dp->layout = rp;
dp->head = tbl->first_head;