Module Name:    src
Committed By:   he
Date:           Sat Mar 28 21:34:34 UTC 2009

Modified Files:
        src/sbin/newfs_msdos: newfs_msdos.c

Log Message:
Add a cast to intmax_t and use %jd to print an off_t.
Fixes at least the alpha and amd64 builds.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sbin/newfs_msdos/newfs_msdos.c

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

Modified files:

Index: src/sbin/newfs_msdos/newfs_msdos.c
diff -u src/sbin/newfs_msdos/newfs_msdos.c:1.32 src/sbin/newfs_msdos/newfs_msdos.c:1.33
--- src/sbin/newfs_msdos/newfs_msdos.c:1.32	Sat Mar 28 15:17:16 2009
+++ src/sbin/newfs_msdos/newfs_msdos.c	Sat Mar 28 21:34:33 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: newfs_msdos.c,v 1.32 2009/03/28 15:17:16 pooka Exp $	*/
+/*	$NetBSD: newfs_msdos.c,v 1.33 2009/03/28 21:34:33 he Exp $	*/
 
 /*
  * Copyright (c) 1998 Robert Nordier
@@ -33,7 +33,7 @@
 static const char rcsid[] =
   "$FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.15 2000/10/10 01:49:37 wollman Exp $";
 #else
-__RCSID("$NetBSD: newfs_msdos.c,v 1.32 2009/03/28 15:17:16 pooka Exp $");
+__RCSID("$NetBSD: newfs_msdos.c,v 1.33 2009/03/28 21:34:33 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -389,7 +389,7 @@
     if (!S_ISCHR(sb.st_mode) && !opt_create)
 	warnx("warning, %s is not a character device", fname);
     if (opt_ofs && opt_ofs != lseek(fd, opt_ofs, SEEK_SET))
-	errx(1, "cannot seek to %lld", opt_ofs);
+	errx(1, "cannot seek to %jd", (intmax_t)opt_ofs);
     memset(&bpb, 0, sizeof(bpb));
     if (opt_f) {
 	getstdfmt(opt_f, &bpb);

Reply via email to