summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-07-27 13:40:57 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-07-27 13:40:57 +0000
commitaf1fd38ff06b0f834122c61a76d65b33f2c8e05a (patch)
treefa45cb1d395a81d74823b50f162077dca3e8c3dd /tag.c
parent8d971c6b6f8952e0731f275f73adbf335b189b8a (diff)
downloadmandoc-af1fd38ff06b0f834122c61a76d65b33f2c8e05a.tar.gz
Move two more output state variables into the new struct outstate.
Also, move setting of tag_files.tagname into tag_init(). No functional change.
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tag.c b/tag.c
index 762d35bc..bc4d7484 100644
--- a/tag.c
+++ b/tag.c
@@ -53,7 +53,7 @@ static struct tag_files tag_files;
* but for simplicity, create it anyway.
*/
struct tag_files *
-tag_init(void)
+tag_init(char *tagname)
{
struct sigaction sa;
int ofd;
@@ -61,6 +61,7 @@ tag_init(void)
ofd = -1;
tag_files.tfd = -1;
tag_files.tcpgid = -1;
+ tag_files.tagname = tagname;
/* Clean up when dying from a signal. */
@@ -129,6 +130,7 @@ fail:
*tag_files.tfn = '\0';
tag_files.ofd = -1;
tag_files.tfd = -1;
+ tag_files.tagname = NULL;
return NULL;
}