aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitab60996c2162f940bec103c027d4b02dec06a62c (patch)
tree5fd6b331b8303f9e27ef30d1711853e98d9465e7
parent01a3522227f3c565a98332ad9290b5ab15e8d40e (diff)
downloadmandoc-ab60996c2162f940bec103c027d4b02dec06a62c.tar.gz
mandoc-ab60996c2162f940bec103c027d4b02dec06a62c.tar.zst
mandoc-ab60996c2162f940bec103c027d4b02dec06a62c.zip
Lintification.
-rw-r--r--ascii.c3
-rw-r--r--main.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/ascii.c b/ascii.c
index 999f732c..5c2dfb6d 100644
--- a/ascii.c
+++ b/ascii.c
@@ -1,4 +1,4 @@
-/* $Id: ascii.c,v 1.3 2009/03/20 15:14:01 kristaps Exp $ */
+/* $Id: ascii.c,v 1.4 2009/03/20 21:58:38 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -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 b3dd5ffa..773700e9 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.6 2009/03/20 21:29:29 kristaps Exp $ */
+/* $Id: main.c,v 1.7 2009/03/20 21:58:38 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -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));