* mdocml: Lint-fixes (NetBSD).
@ 2010-07-21 9:15 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-07-21 9:15 UTC (permalink / raw)
To: source
Log Message:
-----------
Lint-fixes (NetBSD).
Modified Files:
--------------
mdocml:
roff.c
Revision Data
-------------
Index: roff.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -Lroff.c -Lroff.c -u -p -r1.94 -r1.95
--- roff.c
+++ roff.c
@@ -132,8 +132,8 @@ static const char *roff_getstrn(const st
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 ma
* 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, cha
* 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);
/*
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-21 9:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 9:15 mdocml: Lint-fixes (NetBSD) kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).