diff options
author | 2013-12-31 18:07:06 +0000 | |
---|---|---|
committer | 2013-12-31 18:07:06 +0000 | |
commit | 8d3b2f73908238cdcfcacc50f720829d55ee582e (patch) | |
tree | 370464fbf2805a4d6ad4e0e74a49b68db0c72921 /usr.bin/mandoc/man_validate.c | |
parent | various tweaks; ok tedu (diff) | |
download | wireguard-openbsd-8d3b2f73908238cdcfcacc50f720829d55ee582e.tar.xz wireguard-openbsd-8d3b2f73908238cdcfcacc50f720829d55ee582e.zip |
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 'usr.bin/mandoc/man_validate.c')
-rw-r--r-- | usr.bin/mandoc/man_validate.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c index 8f2ed6dd8a9..54a4f5acdfc 100644 --- a/usr.bin/mandoc/man_validate.c +++ b/usr.bin/mandoc/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.58 2013/10/17 20:51:31 schwarze Exp $ */ +/* $Id: man_validate.c,v 1.59 2013/12/31 18:07:06 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -391,7 +391,6 @@ static int post_TH(CHKARGS) { const char *p; - int line, pos; free(man->meta.title); free(man->meta.vol); @@ -399,8 +398,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; @@ -434,9 +431,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(""); |