summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-21 09:15:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-21 09:15:48 +0000
commit58438a6ad563777e1930f6e1c85074a96bdf260c (patch)
treeeba212b86f4fc702ea0f6c652131ad9f3bb6cd91
parent25dd5fca341866aad4ae182313bdf902ae4c349f (diff)
downloadmandoc-58438a6ad563777e1930f6e1c85074a96bdf260c.tar.gz
mandoc-58438a6ad563777e1930f6e1c85074a96bdf260c.tar.zst
mandoc-58438a6ad563777e1930f6e1c85074a96bdf260c.zip
Lint-fixes (NetBSD).
-rw-r--r--roff.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/roff.c b/roff.c
index 0d845c7c..1e054d0e 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.94 2010/07/07 15:04:54 kristaps Exp $ */
+/* $Id: roff.c,v 1.95 2010/07/21 09:15:48 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -132,8 +132,8 @@ static const char *roff_getstrn(const struct roff *,
const char *, size_t);
static enum rofferr roff_line(ROFF_ARGS);
static enum rofferr roff_nr(ROFF_ARGS);
-static int roff_res(struct roff *, int,
- char **, size_t *, int, int *);
+static int roff_res(struct roff *,
+ char **, size_t *, int);
static void roff_setstr(struct roff *,
const char *, const char *);
@@ -332,14 +332,14 @@ roff_alloc(struct regset *regs, const mandocmsg msg, void *data)
* is processed.
*/
static int
-roff_res(struct roff *r, int ln, char **bufp,
- size_t *szp, int pos, int *offs)
+roff_res(struct roff *r, char **bufp, size_t *szp, int pos)
{
const char *cp, *cpp, *st, *res;
int i, maxl;
size_t nsz;
char *n;
+ /* LINTED */
for (cp = &(*bufp)[pos]; (cpp = strstr(cp, "\\*")); cp++) {
cp = cpp + 2;
switch (*cp) {
@@ -406,7 +406,7 @@ roff_parseln(struct roff *r, int ln, char **bufp,
* words to fill in.
*/
- if (r->first_string && ! roff_res(r, ln, bufp, szp, pos, offs))
+ if (r->first_string && ! roff_res(r, bufp, szp, pos))
return(ROFF_RERUN);
/*