summaryrefslogtreecommitdiffstats
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2011-04-07 01:08:42 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2011-04-07 01:08:42 +0000
commite99813aa631956ea6bc1323879f2817f2fe6f761 (patch)
treee8b59faf54089ca36d09b90e933a405a8bfee947 /mdoc_argv.c
parent27aea7255c76e3a5eb45660da5b5ead2dc61b692 (diff)
downloadmandoc-e99813aa631956ea6bc1323879f2817f2fe6f761.tar.gz
Don't shadow global identifiers.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r--mdoc_argv.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index 6bca095e..32bdc0cf 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -652,40 +652,40 @@ args_checkpunct(struct mdoc *m, const char *buf, int i, int ln, int fl)
static enum mdocargt
argv_a2arg(enum mdoct tok, const char *p)
{
- const enum mdocargt *args;
+ const enum mdocargt *argsp;
- args = NULL;
+ argsp = NULL;
switch (tok) {
case (MDOC_An):
- args = args_An;
+ argsp = args_An;
break;
case (MDOC_Bd):
- args = args_Bd;
+ argsp = args_Bd;
break;
case (MDOC_Bf):
- args = args_Bf;
+ argsp = args_Bf;
break;
case (MDOC_Bk):
- args = args_Bk;
+ argsp = args_Bk;
break;
case (MDOC_Bl):
- args = args_Bl;
+ argsp = args_Bl;
break;
case (MDOC_Rv):
/* FALLTHROUGH */
case (MDOC_Ex):
- args = args_Ex;
+ argsp = args_Ex;
break;
default:
return(MDOC_ARG_MAX);
}
- assert(args);
+ assert(argsp);
- for ( ; MDOC_ARG_MAX != *args ; args++)
- if (0 == strcmp(p, mdoc_argnames[*args]))
- return(*args);
+ for ( ; MDOC_ARG_MAX != *argsp ; argsp++)
+ if (0 == strcmp(p, mdoc_argnames[*argsp]))
+ return(*argsp);
return(MDOC_ARG_MAX);
}