=================================================================== RCS file: /cvs/mandoc/tree.c,v retrieving revision 1.65 retrieving revision 1.67 diff -u -p -r1.65 -r1.67 --- mandoc/tree.c 2015/04/18 16:06:41 1.65 +++ mandoc/tree.c 2015/09/26 00:54:04 1.67 @@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.65 2015/04/18 16:06:41 schwarze Exp $ */ +/* $Id: tree.c,v 1.67 2015/09/26 00:54:04 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015 Ingo Schwarze @@ -41,14 +41,14 @@ void tree_mdoc(void *arg, const struct roff_man *mdoc) { - print_mdoc(mdoc_node(mdoc)->child, 0); + print_mdoc(mdoc->first->child, 0); } void tree_man(void *arg, const struct roff_man *man) { - print_man(man_node(man)->child, 0); + print_man(man->first->child, 0); } static void @@ -98,7 +98,6 @@ print_mdoc(const struct roff_node *n, int indent) break; default: abort(); - /* NOTREACHED */ } switch (n->type) { @@ -138,7 +137,6 @@ print_mdoc(const struct roff_node *n, int indent) break; default: abort(); - /* NOTREACHED */ } if (n->span) { @@ -212,7 +210,6 @@ print_man(const struct roff_node *n, int indent) break; default: abort(); - /* NOTREACHED */ } switch (n->type) { @@ -238,7 +235,6 @@ print_man(const struct roff_node *n, int indent) break; default: abort(); - /* NOTREACHED */ } if (n->span) {