summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-09-06 23:24:27 +0000
committerschwarze <schwarze@openbsd.org>2014-09-06 23:24:27 +0000
commit9d7b4fe85a20db93c1f251f9a9dbada95446cf75 (patch)
treea96b4a6432b87595cfe9b529274f5a8b415855b3 /usr.bin/mandoc/man.c
parentMove main format autodetection from the parser dispatcher to the (diff)
downloadwireguard-openbsd-9d7b4fe85a20db93c1f251f9a9dbada95446cf75.tar.xz
wireguard-openbsd-9d7b4fe85a20db93c1f251f9a9dbada95446cf75.zip
Simplify by handling empty request lines at the one logical place
in the roff parser instead of in three other places in other parsers. No functional change.
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r--usr.bin/mandoc/man.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c
index 496b9563daa..5905deebf56 100644
--- a/usr.bin/mandoc/man.c
+++ b/usr.bin/mandoc/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.86 2014/08/08 16:05:42 schwarze Exp $ */
+/* $OpenBSD: man.c,v 1.87 2014/09/06 23:24:27 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -469,13 +469,6 @@ man_pmacro(struct man *man, int ln, char *buf, int offs)
int i, ppos;
int bline;
- if ('"' == buf[offs]) {
- mandoc_msg(MANDOCERR_COMMENT_BAD, man->parse,
- ln, offs, NULL);
- return(1);
- } else if ('\0' == buf[offs])
- return(1);
-
ppos = offs;
/*