diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2020-11-03 22:04:32 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2020-11-03 22:04:32 +0000 |
commit | 32fbec42f54ce275adce4a69af0104f736ac9a91 (patch) | |
tree | 2c42771cf4d6c12a4a970690b1130e151986e605 /sbin | |
parent | b6b885c4fe3163afa3ae0e73d819e795f0c4ac2a (diff) | |
download | src-32fbec42f54ce275adce4a69af0104f736ac9a91.tar.gz src-32fbec42f54ce275adce4a69af0104f736ac9a91.zip |
Notes
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/savecore/savecore.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index abfccf74010b..5ae6cbdaf98a 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -677,7 +677,7 @@ DoFile(const char *savedir, int savedirfd, const char *device) 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 *device) 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) 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 *device) 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 *device) "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 *device) "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: |