diff options
-rw-r--r-- | html.c | 3 | ||||
-rw-r--r-- | man_html.c | 3 | ||||
-rw-r--r-- | man_term.c | 3 | ||||
-rw-r--r-- | mdoc_html.c | 9 | ||||
-rw-r--r-- | mdoc_term.c | 3 | ||||
-rw-r--r-- | term.c | 9 | ||||
-rw-r--r-- | tree.c | 3 |
7 files changed, 15 insertions, 18 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.73 2009/10/30 18:50:11 kristaps Exp $ */ +/* $Id: html.c,v 1.74 2009/10/30 18:53:08 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -18,7 +18,6 @@ #include <assert.h> #include <ctype.h> -#include <err.h> #include <stdio.h> #include <stdarg.h> #include <stdint.h> @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.16 2009/10/28 08:00:18 kristaps Exp $ */ +/* $Id: man_html.c,v 1.17 2009/10/30 18:53:08 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -18,7 +18,6 @@ #include <assert.h> #include <ctype.h> -#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.46 2009/10/27 08:49:44 kristaps Exp $ */ +/* $Id: man_term.c,v 1.47 2009/10/30 18:53:08 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -18,7 +18,6 @@ #include <assert.h> #include <ctype.h> -#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/mdoc_html.c b/mdoc_html.c index 5a314fa1..186d9a5d 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.42 2009/10/28 08:00:18 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.43 2009/10/30 18:53:08 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -19,7 +19,6 @@ #include <assert.h> #include <ctype.h> -#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1115,8 +1114,10 @@ mdoc_bl_pre(MDOC_ARGS) return(1); ord = malloc(sizeof(struct ord)); - if (NULL == ord) - err(EXIT_FAILURE, "malloc"); + if (NULL == ord) { + fprintf(stderr, "memory exhausted\n"); + exit(EXIT_FAILURE); + } ord->cookie = n; ord->pos = 1; ord->next = h->ords.head; diff --git a/mdoc_term.c b/mdoc_term.c index 8d337150..1e47dc62 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.98 2009/10/27 08:49:44 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.99 2009/10/30 18:53:09 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -18,7 +18,6 @@ #include <assert.h> #include <ctype.h> -#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.118 2009/10/30 18:50:11 kristaps Exp $ */ +/* $Id: term.c,v 1.119 2009/10/30 18:53:09 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -15,7 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <assert.h> -#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -147,9 +146,11 @@ term_flushln(struct termp *p) assert(p->offset < p->rmargin); maxvis = (int)(p->rmargin - p->offset) - overstep < 0 ? - 0 : p->rmargin - p->offset - overstep; + /* LINTED */ + 0 : p->rmargin - p->offset - overstep; mmax = (int)(p->maxrmargin - p->offset) - overstep < 0 ? - 0 : p->maxrmargin - p->offset - overstep; + /* LINTED */ + 0 : p->maxrmargin - p->offset - overstep; bp = TERMP_NOBREAK & p->flags ? mmax : maxvis; @@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.17 2009/10/26 17:05:44 kristaps Exp $ */ +/* $Id: tree.c,v 1.18 2009/10/30 18:53:09 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -15,7 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <assert.h> -#include <err.h> #include <stdio.h> #include <stdlib.h> #include <time.h> |