summaryrefslogtreecommitdiffstats
path: root/lib/libc/md
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-08-17 09:13:12 +0000
committermillert <millert@openbsd.org>1999-08-17 09:13:12 +0000
commit01a836885e9331fa7c86e3934e515594f9aabcd5 (patch)
tree3b26fdb88b76a353479fe8d3d103b5f7d3925d1a /lib/libc/md
parentFix a problem if midi at ym is defined but not mpu. (diff)
downloadwireguard-openbsd-01a836885e9331fa7c86e3934e515594f9aabcd5.tar.xz
wireguard-openbsd-01a836885e9331fa7c86e3934e515594f9aabcd5.zip
More <sys/file.h> vs. <fcntl.h> and open() flags fixes.
Diffstat (limited to 'lib/libc/md')
-rw-r--r--lib/libc/md/mdXhl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/md/mdXhl.c b/lib/libc/md/mdXhl.c
index d26424df993..3e0de52567c 100644
--- a/lib/libc/md/mdXhl.c
+++ b/lib/libc/md/mdXhl.c
@@ -8,13 +8,13 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: mdXhl.c,v 1.8 1997/07/23 21:17:56 kstailey Exp $";
+static char rcsid[] = "$OpenBSD: mdXhl.c,v 1.9 1999/08/17 09:13:12 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
-#include <sys/file.h>
+#include <fcntl.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
@@ -54,7 +54,7 @@ MDXFile (filename, buf)
int f,i,j;
MDXInit(&ctx);
- f = open(filename,O_RDONLY);
+ f = open(filename, O_RDONLY);
if (f < 0) return 0;
while ((i = read(f,buffer,sizeof buffer)) > 0) {
MDXUpdate(&ctx,buffer,i);