* mdocml: Lint fixes: remove unused function variables and pass in proper
@ 2011-05-12 23:44 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-05-12 23:44 UTC (permalink / raw)
To: source
Log Message:
-----------
Lint fixes: remove unused function variables and pass in proper enum
values instead of ints.
Modified Files:
--------------
mdocml:
mdoc_argv.c
Revision Data
-------------
Index: mdoc_argv.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_argv.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -Lmdoc_argv.c -Lmdoc_argv.c -u -p -r1.76 -r1.77
--- mdoc_argv.c
+++ mdoc_argv.c
@@ -50,8 +50,7 @@ enum argvflag {
static enum mdocargt argv_a2arg(enum mdoct, const char *);
static enum margserr args(struct mdoc *, int, int *,
char *, enum argsflag, char **);
-static int args_checkpunct(struct mdoc *,
- const char *, int, int);
+static int args_checkpunct(const char *, int);
static int argv(struct mdoc *, int,
struct mdoc_argv *, int *, char *);
static int argv_single(struct mdoc *, int,
@@ -445,7 +444,7 @@ args(struct mdoc *m, int line, int *pos,
*v = &buf[*pos];
if (ARGSFL_DELIM == fl)
- if (args_checkpunct(m, buf, *pos, line))
+ if (args_checkpunct(buf, *pos))
return(ARGS_PUNCT);
/*
@@ -571,7 +570,7 @@ args(struct mdoc *m, int line, int *pos,
* whitespace may separate these tokens.
*/
static int
-args_checkpunct(struct mdoc *m, const char *buf, int i, int ln)
+args_checkpunct(const char *buf, int i)
{
int j;
char dbuf[DELIMSZ];
@@ -670,7 +669,7 @@ argv_multi(struct mdoc *m, int line,
for (v->sz = 0; ; v->sz++) {
if ('-' == buf[*pos])
break;
- ac = args(m, line, pos, buf, 0, &p);
+ ac = args(m, line, pos, buf, ARGSFL_NONE, &p);
if (ARGS_ERROR == ac)
return(0);
else if (ARGS_EOLN == ac)
@@ -696,7 +695,7 @@ argv_opt_single(struct mdoc *m, int line
if ('-' == buf[*pos])
return(1);
- ac = args(m, line, pos, buf, 0, &p);
+ ac = args(m, line, pos, buf, ARGSFL_NONE, &p);
if (ARGS_ERROR == ac)
return(0);
if (ARGS_EOLN == ac)
@@ -722,7 +721,7 @@ argv_single(struct mdoc *m, int line,
ppos = *pos;
- ac = args(m, line, pos, buf, 0, &p);
+ ac = args(m, line, pos, buf, ARGSFL_NONE, &p);
if (ARGS_EOLN == ac) {
mdoc_pmsg(m, line, ppos, MANDOCERR_SYNTARGVCOUNT);
return(0);
--
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:[~2011-05-12 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12 23:44 mdocml: Lint fixes: remove unused function variables and pass in proper 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).