Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fdisk Editing partitions larger than 1TB works better i...
details: https://anonhg.NetBSD.org/src/rev/35e6edbcc44e
branches: trunk
changeset: 750273:35e6edbcc44e
user: dsl <dsl%NetBSD.org@localhost>
date: Tue Dec 22 21:04:37 2009 +0000
description:
Editing partitions larger than 1TB works better if 'decimal' returns
64 bit integer values!
diffstat:
sbin/fdisk/fdisk.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 5d0cfd125406 -r 35e6edbcc44e sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c Tue Dec 22 20:50:46 2009 +0000
+++ b/sbin/fdisk/fdisk.c Tue Dec 22 21:04:37 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdisk.c,v 1.127 2009/12/20 17:32:09 dsl Exp $ */
+/* $NetBSD: fdisk.c,v 1.128 2009/12/22 21:04:37 dsl Exp $ */
/*
* Mach Operating System
@@ -39,7 +39,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.127 2009/12/20 17:32:09 dsl Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.128 2009/12/22 21:04:37 dsl Exp $");
#endif /* not lint */
#define MBRPTYPENAMES
@@ -284,7 +284,7 @@
int read_gpt(daddr_t, struct gpt_hdr *);
int delete_gpt(struct gpt_hdr *);
int yesno(const char *, ...);
-int decimal(const char *, int64_t, int, int64_t, int64_t);
+int64_t decimal(const char *, int64_t, int, int64_t, int64_t);
#define DEC_SEC 1 /* asking for a sector number */
#define DEC_RND 2 /* round to end of first track */
#define DEC_RND_0 4 /* round 0 to size of a track */
@@ -2682,7 +2682,7 @@
return (first == 'y' || first == 'Y');
}
-int
+int64_t
decimal(const char *prompt, int64_t dflt, int flags, int64_t minval, int64_t maxval)
{
int64_t acc = 0;
Home |
Main Index |
Thread Index |
Old Index