From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Lint-fixes (NetBSD).
Date: Wed, 21 Jul 2010 05:15:48 -0400 (EDT) [thread overview]
Message-ID: <201007210915.o6L9FmCs030560@krisdoz.my.domain> (raw)
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
reply other threads:[~2010-07-21 9:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201007210915.o6L9FmCs030560@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).