summaryrefslogtreecommitdiffstats
path: root/macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 09:39:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 09:39:40 +0000
commit79f971e5f7cb6c69d1b2ed2d38a5bccd604a24f5 (patch)
treee79a27c76524024d5fa19f0e46c5dcb1f257d997 /macro.c
parent7b98305324c48ff2b74e270c6b4a44f644a56350 (diff)
downloadmandoc-79f971e5f7cb6c69d1b2ed2d38a5bccd604a24f5.tar.gz
Lintified sources.
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/macro.c b/macro.c
index 4b2caf26..36853680 100644
--- a/macro.c
+++ b/macro.c
@@ -750,7 +750,8 @@ macro_text(MACRO_PROT_ARGS)
return(perr(mdoc, line, ppos, EARGVLIM));
}
- c = mdoc_elem_alloc(mdoc, line, ppos, tok, argc, argv);
+ c = mdoc_elem_alloc(mdoc, line, ppos,
+ tok, (size_t)argc, argv);
if (0 == c) {
mdoc_argv_free(argc, argv);
@@ -802,8 +803,8 @@ macro_text(MACRO_PROT_ARGS)
}
lastpunct = 1;
} else if (lastpunct) {
- c = mdoc_elem_alloc(mdoc, line,
- ppos, tok, argc, argv);
+ c = mdoc_elem_alloc(mdoc, line, ppos,
+ tok, (size_t)argc, argv);
if (0 == c) {
mdoc_argv_free(argc, argv);
return(0);
@@ -1225,7 +1226,9 @@ macro_constant_delimited(MACRO_PROT_ARGS)
return(perr(mdoc, line, ppos, EARGVLIM));
}
- c = mdoc_elem_alloc(mdoc, line, ppos, tok, argc, argv);
+ c = mdoc_elem_alloc(mdoc, line, ppos,
+ tok, (size_t)argc, argv);
+
mdoc_argv_free(argc, argv);
if (0 == c)
@@ -1316,7 +1319,9 @@ macro_constant(MACRO_PROT_ARGS)
return(perr(mdoc, line, ppos, EARGVLIM));
}
- c = mdoc_elem_alloc(mdoc, line, ppos, tok, argc, argv);
+ c = mdoc_elem_alloc(mdoc, line, ppos,
+ tok, (size_t)argc, argv);
+
mdoc_argv_free(argc, argv);
if (0 == c)