summaryrefslogtreecommitdiffstats
path: root/demandoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-09-01 10:49:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-09-01 10:49:13 +0000
commit857ad0869399503297c5b7af159469cc1f795d30 (patch)
tree3f23142945228259e25e7afb2e52a18f8c071a10 /demandoc.c
parenta5aa008dcc2300ee6a20ef63e9129a24c9da6761 (diff)
downloadmandoc-857ad0869399503297c5b7af159469cc1f795d30.tar.gz
Lint checks over demandoc.
Diffstat (limited to 'demandoc.c')
-rw-r--r--demandoc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/demandoc.c b/demandoc.c
index 1b31d5da..e8e96e7c 100644
--- a/demandoc.c
+++ b/demandoc.c
@@ -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)++;
}
}