aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--term_ascii.c5
-rw-r--r--term_ps.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/term_ascii.c b/term_ascii.c
index b926a5b3..374a2a02 100644
--- a/term_ascii.c
+++ b/term_ascii.c
@@ -1,4 +1,4 @@
-/* $Id: term_ascii.c,v 1.11 2011/01/02 12:21:07 kristaps Exp $ */
+/* $Id: term_ascii.c,v 1.12 2011/01/25 17:32:04 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -48,8 +48,7 @@ ascii_alloc(char *outopts)
const char *toks[2];
char *v;
- if (NULL == (p = term_alloc(TERMENC_ASCII)))
- return(NULL);
+ p = term_alloc(TERMENC_ASCII);
p->tabwidth = 5;
p->defrmargin = 78;
diff --git a/term_ps.c b/term_ps.c
index fa2f68fe..543b111c 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -1,4 +1,4 @@
-/* $Id: term_ps.c,v 1.45 2010/09/27 23:03:44 schwarze Exp $ */
+/* $Id: term_ps.c,v 1.46 2011/01/25 17:32:04 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -428,8 +428,7 @@ pspdf_alloc(char *outopts)
const char *pp;
char *v;
- if (NULL == (p = term_alloc(TERMENC_ASCII)))
- return(NULL);
+ p = term_alloc(TERMENC_ASCII);
p->advance = ps_advance;
p->begin = ps_begin;