[prev in list] [next in list] [prev in thread] [next in thread]
List: mandoc-source
Subject: mdocml: resolve trivial differences with OpenBSD: * we include
From: schwarze () mdocml ! bsd ! lv
Date: 2017-02-18 17:29:58
Message-ID: 7888442685116056430.enqueue () fantadrom ! bsd ! lv
[Download RAW message or body]
Log Message:
-----------
resolve trivial differences with OpenBSD:
* we include <sys/types.h> for size_t, so we don't need <stdint.h>
* sort declarations in read_whole_file()
Modified Files:
--------------
mdocml:
read.c
Revision Data
-------------
Index: read.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/read.c,v
retrieving revision 1.160
retrieving revision 1.161
diff -Lread.c -Lread.c -u -p -r1.160 -r1.161
--- read.c
+++ read.c
@@ -30,7 +30,6 @@
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -603,11 +602,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);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic