diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-12-31 18:07:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-12-31 18:07:42 +0000 |
commit | 1afd9d280bb0e2233cc039303a03959af86f233c (patch) | |
tree | fa1516d4bf450908c5a6333ecaffda953ed06ebe /man_validate.c | |
parent | e1308124a54c14f5ce3ca729c696b0aed225f720 (diff) | |
download | mandoc-1afd9d280bb0e2233cc039303a03959af86f233c.tar.gz |
remove assignments that will be overwritten right afterwards,
and remove pointless local variables;
found in a clang output from Ulrich Spoerlein <uqs at FreeBSD>
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/man_validate.c b/man_validate.c index ad923caf..2c64608c 100644 --- a/man_validate.c +++ b/man_validate.c @@ -395,7 +395,6 @@ static int post_TH(CHKARGS) { const char *p; - int line, pos; free(man->meta.title); free(man->meta.vol); @@ -403,8 +402,6 @@ post_TH(CHKARGS) free(man->meta.msec); free(man->meta.date); - line = n->line; - pos = n->pos; man->meta.title = man->meta.vol = man->meta.date = man->meta.msec = man->meta.source = NULL; @@ -438,9 +435,8 @@ post_TH(CHKARGS) if (n) n = n->next; if (n && n->string && '\0' != n->string[0]) { - pos = n->pos; man->meta.date = mandoc_normdate - (man->parse, n->string, line, pos); + (man->parse, n->string, n->line, n->pos); } else man->meta.date = mandoc_strdup(""); |