diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-08-16 12:23:51 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-08-16 12:23:51 +0000 |
commit | 7110f48309babd1dbd69a3a0bfd663d618519be6 (patch) | |
tree | 550b6a1a939523621506de04b3c804412e2152c2 /mdoc_validate.c | |
parent | 4c2689a6195266791cdff13747e79684e8305c3c (diff) | |
download | mandoc-7110f48309babd1dbd69a3a0bfd663d618519be6.tar.gz |
Fixed mingw compatibility where the "z" printf() modifier isn't
recognised. It's easier to make these u_int than to jump through hoops
for a special formatter.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index e93c851a..994efacc 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1395,7 +1395,7 @@ post_bl_block_width(POST_ARGS) assert(i < (int)n->args->argc); - snprintf(buf, NUMSIZ, "%zun", width); + snprintf(buf, NUMSIZ, "%un", (unsigned int)width); free(n->args->argv[i].value[0]); n->args->argv[i].value[0] = mandoc_strdup(buf); @@ -1445,7 +1445,7 @@ post_bl_block_tag(POST_ARGS) /* Defaults to ten ens. */ - snprintf(buf, NUMSIZ, "%zun", sz); + snprintf(buf, NUMSIZ, "%un", (unsigned int)sz); /* * We have to dynamically add this to the macro's argument list. |