Module Name:    src
Committed By:   martin
Date:           Tue Jan  9 10:47:57 UTC 2018

Modified Files:
        src/usr.sbin/fstyp: fstyp.c

Log Message:
Use fseeko instead of fseek to fix the build on some 32bit architectures


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/fstyp/fstyp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/fstyp/fstyp.c
diff -u src/usr.sbin/fstyp/fstyp.c:1.1 src/usr.sbin/fstyp/fstyp.c:1.2
--- src/usr.sbin/fstyp/fstyp.c:1.1	Tue Jan  9 03:31:15 2018
+++ src/usr.sbin/fstyp/fstyp.c	Tue Jan  9 10:47:57 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: fstyp.c,v 1.1 2018/01/09 03:31:15 christos Exp $	*/
+/*	$NetBSD: fstyp.c,v 1.2 2018/01/09 10:47:57 martin Exp $	*/
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  *
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: fstyp.c,v 1.1 2018/01/09 03:31:15 christos Exp $");
+__RCSID("$NetBSD: fstyp.c,v 1.2 2018/01/09 10:47:57 martin Exp $");
 
 #include <sys/disklabel.h>
 #include <sys/dkio.h>
@@ -89,7 +89,7 @@ read_buf(FILE *fp, off_t off, size_t len
 	size_t nread;
 	void *buf;
 
-	error = fseek(fp, off, SEEK_SET);
+	error = fseeko(fp, off, SEEK_SET);
 	if (error != 0) {
 		warn("cannot seek to %jd", (uintmax_t)off);
 		return NULL;

Reply via email to