Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/fstyp Use fseeko instead of fseek to fix the build ...



details:   https://anonhg.NetBSD.org/src/rev/8765dc89ac5f
branches:  trunk
changeset: 828904:8765dc89ac5f
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 09 10:47:57 2018 +0000

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

diffstat:

 usr.sbin/fstyp/fstyp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 21d6e2df4812 -r 8765dc89ac5f usr.sbin/fstyp/fstyp.c
--- a/usr.sbin/fstyp/fstyp.c    Tue Jan 09 09:41:29 2018 +0000
+++ b/usr.sbin/fstyp/fstyp.c    Tue Jan 09 10:47:57 2018 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index