summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-31 23:23:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-31 23:23:10 +0000
commit8165032a586fb8d32ff25ec7340db91a5568e604 (patch)
tree12fb3a063e97fce5041017ce1e096a75ccc6dc11 /mandoc.c
parent00a83eb67618ef2d3d4efc692882efa3dc6252ca (diff)
downloadmandoc-8165032a586fb8d32ff25ec7340db91a5568e604.tar.gz
Simplify: Remove an unused argument from the mandoc_eos() function.
No functional change.
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mandoc.c b/mandoc.c
index d2da1e94..5f002bf5 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -594,10 +594,10 @@ mandoc_normdate(struct mparse *parse, char *in, int ln, int pos)
}
int
-mandoc_eos(const char *p, size_t sz, int enclosed)
+mandoc_eos(const char *p, size_t sz)
{
- const char *q;
- int found;
+ const char *q;
+ int enclosed, found;
if (0 == sz)
return(0);
@@ -608,7 +608,7 @@ mandoc_eos(const char *p, size_t sz, int enclosed)
* propagate outward.
*/
- found = 0;
+ enclosed = found = 0;
for (q = p + (int)sz - 1; q >= p; q--) {
switch (*q) {
case ('\"'):