summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-20 21:58:38 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-20 21:58:38 +0000
commit6907507e9490a89668a79a58931609f62c65bbb5 (patch)
treed353f95b76f47cdadab487f70aad7b03bab7ee71
parent16bb9f263ca4c8015cd2b9ae9b78922a9fb190d3 (diff)
downloadmandoc-6907507e9490a89668a79a58931609f62c65bbb5.tar.gz
Lintification.
-rw-r--r--ascii.c1
-rw-r--r--main.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/ascii.c b/ascii.c
index b4ba184a..87fee5e8 100644
--- a/ascii.c
+++ b/ascii.c
@@ -92,7 +92,6 @@ term_ascii2htab(void)
if (NULL == (tab = malloc(sizeof(struct asciitab))))
err(1, "malloc");
- assert(0 == sizeof(lines) % sizeof(struct line));
len = sizeof(lines) / sizeof(struct line);
if (NULL == (p = calloc((size_t)len, sizeof(struct linep))))
diff --git a/main.c b/main.c
index d263a69f..82648464 100644
--- a/main.c
+++ b/main.c
@@ -86,7 +86,7 @@ static int fdesc(struct buf *, struct buf *,
int
main(int argc, char *argv[])
{
- int c, rc, fflags, wflags;
+ int c, rc, fflags;
struct mdoc_cb cb;
struct mdoc *mdoc;
void *outdata;
@@ -96,7 +96,7 @@ main(int argc, char *argv[])
out_free outfree;
struct curparse curp;
- fflags = wflags = 0;
+ fflags = 0;
outtype = OUTT_ASCII;
bzero(&curp, sizeof(struct curparse));