Date: Tue, 3 Nov 2020 22:04:33 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367307 - head/sbin/savecore Message-ID: <202011032204.0A3M4Xge019991@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Tue Nov 3 22:04:32 2020 New Revision: 367307 URL: https://svnweb.freebsd.org/changeset/base/367307 Log: Style, not functional changes: - Improve spelling of a false check [1] - A missing line from r367150. Submitted by: kib Modified: head/sbin/savecore/savecore.c Modified: head/sbin/savecore/savecore.c ============================================================================== --- head/sbin/savecore/savecore.c Tue Nov 3 21:38:59 2020 (r367306) +++ head/sbin/savecore/savecore.c Tue Nov 3 22:04:32 2020 (r367307) @@ -677,7 +677,7 @@ DoFile(const char *savedir, int savedirfd, const char dtoh32(kdhl.version), device); status = STATUS_BAD; - if (force == false) + if (!force) goto closefd; } } else if (compare_magic(&kdhl, KERNELDUMPMAGIC)) { @@ -687,7 +687,7 @@ DoFile(const char *savedir, int savedirfd, const char dtoh32(kdhl.version), device); status = STATUS_BAD; - if (force == false) + if (!force) goto closefd; } switch (kdhl.compression) { @@ -711,7 +711,7 @@ DoFile(const char *savedir, int savedirfd, const char device); status = STATUS_BAD; - if (force == false) + if (!force) goto closefd; if (compare_magic(&kdhl, KERNELDUMPMAGIC_CLEARED)) { @@ -728,7 +728,7 @@ DoFile(const char *savedir, int savedirfd, const char dtoh32(kdhl.version), device); status = STATUS_BAD; - if (force == false) + if (!force) goto closefd; } } @@ -742,7 +742,7 @@ DoFile(const char *savedir, int savedirfd, const char "parity error on last dump header on %s", device); nerr++; status = STATUS_BAD; - if (force == false) + if (!force) goto closefd; } dumpextent = dtoh64(kdhl.dumpextent); @@ -773,7 +773,7 @@ DoFile(const char *savedir, int savedirfd, const char "first and last dump headers disagree on %s", device); nerr++; status = STATUS_BAD; - if (force == false) + if (!force) goto closefd; } else { status = STATUS_GOOD; @@ -1148,7 +1148,7 @@ main(int argc, char **argv) verbose++; break; case 'z': - compress = 1; + compress = true; break; case '?': default:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011032204.0A3M4Xge019991>