=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.160 retrieving revision 1.162 diff -u -p -r1.160 -r1.162 --- mandoc/read.c 2017/02/03 18:18:23 1.160 +++ mandoc/read.c 2017/03/06 17:26:05 1.162 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.160 2017/02/03 18:18:23 schwarze Exp $ */ +/* $Id: read.c,v 1.162 2017/03/06 17:26:05 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2017 Ingo Schwarze @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include @@ -114,6 +113,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "bad NAME section content", "missing comma before name", "missing description line, using \"\"", + "description line outside NAME section", "sections out of conventional order", "duplicate section title", "unexpected section", @@ -603,11 +603,10 @@ static int read_whole_file(struct mparse *curp, const char *file, int fd, struct buf *fb, int *with_mmap) { + struct stat st; gzFile gz; size_t off; ssize_t ssz; - - struct stat st; if (fstat(fd, &st) == -1) err((int)MANDOCLEVEL_SYSERR, "%s", file);