Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/diskpart fix typo in definition: s/threshhold/thres...



details:   https://anonhg.NetBSD.org/src/rev/4e369672c560
branches:  trunk
changeset: 984954:4e369672c560
user:      andvar <andvar%NetBSD.org@localhost>
date:      Sun Aug 01 18:02:22 2021 +0000

description:
fix typo in definition: s/threshhold/threshold/

diffstat:

 usr.sbin/diskpart/diskpart.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 7a1bc25b8fd4 -r 4e369672c560 usr.sbin/diskpart/diskpart.c
--- a/usr.sbin/diskpart/diskpart.c      Sun Aug 01 17:59:47 2021 +0000
+++ b/usr.sbin/diskpart/diskpart.c      Sun Aug 01 18:02:22 2021 +0000
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "from: @(#)diskpart.c   8.3 (Berkeley) 11/30/94";
 #else
-__RCSID("$NetBSD: diskpart.c,v 1.20 2015/01/02 19:46:02 christos Exp $");
+__RCSID("$NetBSD: diskpart.c,v 1.21 2021/08/01 18:02:22 andvar Exp $");
 #endif
 #endif /* not lint */
 
@@ -123,7 +123,7 @@
        struct disklabel *dp;
        int spc, def, part, layout, j, ch;
        uint32_t curcyl;
-       int threshhold, numcyls[NPARTITIONS], startcyl[NPARTITIONS];
+       int threshold, numcyls[NPARTITIONS], startcyl[NPARTITIONS];
        off_t totsize = 0;
        const char *tyname;
        char *lp;
@@ -185,10 +185,10 @@
            totsize == 0) {
                badsecttable = dp->d_nsectors +
                    roundup(badsecttable, dp->d_nsectors);
-               threshhold = howmany(spc, badsecttable);
+               threshold = howmany(spc, badsecttable);
        } else {
                badsecttable = 0;
-               threshhold = 0;
+               threshold = 0;
        }
        /*
         * If disk size was specified, recompute number of cylinders
@@ -210,7 +210,7 @@
                curcyl = 0;
                for (part = PART('a'); part < NPARTITIONS; part++)
                        curcyl += howmany(defpart[def][part], spc);
-               if (curcyl < dp->d_ncylinders - threshhold)
+               if (curcyl < dp->d_ncylinders - threshold)
                        break;
        }
        if (def >= NDEFAULTS) {



Home | Main Index | Thread Index | Old Index