summaryrefslogtreecommitdiffstats
path: root/demandoc.c
diff options
context:
space:
mode:
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)++;
}
}