diff options
author | 2014-11-28 16:53:38 +0000 | |
---|---|---|
committer | 2014-11-28 16:53:38 +0000 | |
commit | 918a80d76e639330eab9da14699ccdf3b7b34f12 (patch) | |
tree | 431ab1b90a282ad1ad62f81b27b4e0048b2f47ad /usr.bin/mandoc/mdoc_term.c | |
parent | Be more careful about meta->name. For weird input, it can be NULL. (diff) | |
download | wireguard-openbsd-918a80d76e639330eab9da14699ccdf3b7b34f12.tar.xz wireguard-openbsd-918a80d76e639330eab9da14699ccdf3b7b34f12.zip |
mop up and #ifdef turd deraadt@ stepped into
Diffstat (limited to '')
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index 5fa12c880ee..66fd115a832 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_term.c,v 1.195 2014/11/28 16:02:23 schwarze Exp $ */ +/* $OpenBSD: mdoc_term.c,v 1.196 2014/11/28 16:53:38 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -1225,14 +1225,8 @@ static int termp_nd_pre(DECL_ARGS) { - if (MDOC_BODY != n->type) - return(1); - -#if defined(__OpenBSD__) || defined(__linux__) - term_word(p, "\\(en"); -#else - term_word(p, "\\(em"); -#endif + if (n->type == MDOC_BODY) + term_word(p, "\\(en"); return(1); } |