diff options
author | 2014-11-28 18:35:37 +0000 | |
---|---|---|
committer | 2014-11-28 18:35:37 +0000 | |
commit | a47bc3bc07ee634fc20d1fa8456adb704c1f4e1a (patch) | |
tree | 5f4f0dae408e2108954e3122c41e8e8bdff00c30 /usr.bin/mandoc/mdoc_validate.c | |
parent | Drop useless architecture table. Validating architecture names (diff) | |
download | wireguard-openbsd-a47bc3bc07ee634fc20d1fa8456adb704c1f4e1a.tar.xz wireguard-openbsd-a47bc3bc07ee634fc20d1fa8456adb704c1f4e1a.zip |
Retire support for CSRG supplementary document titles. These are
long obsolete and were never written in mdoc(7) in the first place.
Removes 100 lines from source files.
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_validate.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c index 325214e3c91..f85936507aa 100644 --- a/usr.bin/mandoc/mdoc_validate.c +++ b/usr.bin/mandoc/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_validate.c,v 1.177 2014/11/28 18:07:38 schwarze Exp $ */ +/* $OpenBSD: mdoc_validate.c,v 1.178 2014/11/28 18:35:37 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -2271,19 +2271,9 @@ post_dt(POST_ARGS) mdoc->meta.msec = mandoc_strdup(nn->string); } - if (NULL == (nn = nn->next)) - goto out; - - /* - * If the third argument is a volume name, format is, - * otherwise assume it's an architecture. - */ + /* Handle an optional architecture */ - cp = mdoc_a2vol(nn->string); - if (cp) { - free(mdoc->meta.vol); - mdoc->meta.vol = mandoc_strdup(cp); - } else { + if ((nn = nn->next) != NULL) { for (p = nn->string; *p; p++) *p = tolower((unsigned char)*p); mdoc->meta.arch = mandoc_strdup(nn->string); |