Module Name: src Committed By: andvar Date: Sun Aug 1 18:02:22 UTC 2021
Modified Files: src/usr.sbin/diskpart: diskpart.c Log Message: fix typo in definition: s/threshhold/threshold/ To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/diskpart/diskpart.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/diskpart/diskpart.c diff -u src/usr.sbin/diskpart/diskpart.c:1.20 src/usr.sbin/diskpart/diskpart.c:1.21 --- src/usr.sbin/diskpart/diskpart.c:1.20 Fri Jan 2 19:46:02 2015 +++ src/usr.sbin/diskpart/diskpart.c Sun Aug 1 18:02:22 2021 @@ -37,7 +37,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19 #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 @@ main(int argc, char *argv[]) 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 @@ main(int argc, char *argv[]) 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 @@ main(int argc, char *argv[]) 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) {