diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-09-01 10:49:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-09-01 10:49:13 +0000 |
commit | 857ad0869399503297c5b7af159469cc1f795d30 (patch) | |
tree | 3f23142945228259e25e7afb2e52a18f8c071a10 | |
parent | a5aa008dcc2300ee6a20ef63e9129a24c9da6761 (diff) | |
download | mandoc-857ad0869399503297c5b7af159469cc1f795d30.tar.gz |
Lint checks over demandoc.
-rw-r--r-- | demandoc.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -44,7 +44,6 @@ main(int argc, char *argv[]) struct mparse *mp; int ch, i; extern int optind; - extern char *optarg; progname = strrchr(argv[0], '/'); if (progname == NULL) @@ -76,7 +75,7 @@ main(int argc, char *argv[]) } mparse_free(mp); - return(MANDOCLEVEL_OK); + return((int)MANDOCLEVEL_OK); } static void @@ -132,7 +131,7 @@ pstring(const char *p, int col, int *colp) if (ESCAPE_ERROR == esc) return; } else { - putchar(*p++); + putchar((unsigned char )*p++); (*colp)++; } } |