summaryrefslogtreecommitdiffstats
path: root/term_ps.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-06 18:32:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-06 18:32:19 +0000
commitcdd9965f2080354017315270cbc3dc2da6378df9 (patch)
treeabceb46c894355584ad94178001ebb10ff35db04 /term_ps.c
parent2c5e2d1085930e82ce52bf9402182a0630e8f39d (diff)
downloadmandoc-cdd9965f2080354017315270cbc3dc2da6378df9.tar.gz
modernize style: "return" is not a function
Diffstat (limited to 'term_ps.c')
-rw-r--r--term_ps.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/term_ps.c b/term_ps.c
index 726af23f..a160299a 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -516,7 +516,7 @@ pdf_alloc(const struct mchars *mchars, const struct manoutput *outopts)
if (NULL != (p = pspdf_alloc(mchars, outopts)))
p->type = TERMTYPE_PDF;
- return(p);
+ return p;
}
void *
@@ -527,7 +527,7 @@ ps_alloc(const struct mchars *mchars, const struct manoutput *outopts)
if (NULL != (p = pspdf_alloc(mchars, outopts)))
p->type = TERMTYPE_PS;
- return(p);
+ return p;
}
static struct termp *
@@ -616,7 +616,7 @@ pspdf_alloc(const struct mchars *mchars, const struct manoutput *outopts)
p->ps->lineheight = lineheight;
p->defrmargin = pagex - (marginx * 2);
- return(p);
+ return p;
}
static void
@@ -1270,7 +1270,7 @@ ps_width(const struct termp *p, int c)
else
c -= 32;
- return((size_t)fonts[(int)TERMFONT_NONE].gly[c].wx);
+ return (size_t)fonts[(int)TERMFONT_NONE].gly[c].wx;
}
static int
@@ -1325,7 +1325,7 @@ ps_hspan(const struct termp *p, const struct roffsu *su)
break;
}
- return(r * 24.0);
+ return r * 24.0;
}
static void