Style, not functional changes:
- Improve spelling of a false check [1] - A missing line from r367150. Submitted by: kib
This commit is contained in:
parent
b6b885c4fe
commit
32fbec42f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367307
@ -677,7 +677,7 @@ DoFile(const char *savedir, int savedirfd, const char *device)
|
|||||||
dtoh32(kdhl.version), device);
|
dtoh32(kdhl.version), device);
|
||||||
|
|
||||||
status = STATUS_BAD;
|
status = STATUS_BAD;
|
||||||
if (force == false)
|
if (!force)
|
||||||
goto closefd;
|
goto closefd;
|
||||||
}
|
}
|
||||||
} else if (compare_magic(&kdhl, KERNELDUMPMAGIC)) {
|
} else if (compare_magic(&kdhl, KERNELDUMPMAGIC)) {
|
||||||
@ -687,7 +687,7 @@ DoFile(const char *savedir, int savedirfd, const char *device)
|
|||||||
dtoh32(kdhl.version), device);
|
dtoh32(kdhl.version), device);
|
||||||
|
|
||||||
status = STATUS_BAD;
|
status = STATUS_BAD;
|
||||||
if (force == false)
|
if (!force)
|
||||||
goto closefd;
|
goto closefd;
|
||||||
}
|
}
|
||||||
switch (kdhl.compression) {
|
switch (kdhl.compression) {
|
||||||
@ -711,7 +711,7 @@ DoFile(const char *savedir, int savedirfd, const char *device)
|
|||||||
device);
|
device);
|
||||||
|
|
||||||
status = STATUS_BAD;
|
status = STATUS_BAD;
|
||||||
if (force == false)
|
if (!force)
|
||||||
goto closefd;
|
goto closefd;
|
||||||
|
|
||||||
if (compare_magic(&kdhl, KERNELDUMPMAGIC_CLEARED)) {
|
if (compare_magic(&kdhl, KERNELDUMPMAGIC_CLEARED)) {
|
||||||
@ -728,7 +728,7 @@ DoFile(const char *savedir, int savedirfd, const char *device)
|
|||||||
dtoh32(kdhl.version), device);
|
dtoh32(kdhl.version), device);
|
||||||
|
|
||||||
status = STATUS_BAD;
|
status = STATUS_BAD;
|
||||||
if (force == false)
|
if (!force)
|
||||||
goto closefd;
|
goto closefd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -742,7 +742,7 @@ DoFile(const char *savedir, int savedirfd, const char *device)
|
|||||||
"parity error on last dump header on %s", device);
|
"parity error on last dump header on %s", device);
|
||||||
nerr++;
|
nerr++;
|
||||||
status = STATUS_BAD;
|
status = STATUS_BAD;
|
||||||
if (force == false)
|
if (!force)
|
||||||
goto closefd;
|
goto closefd;
|
||||||
}
|
}
|
||||||
dumpextent = dtoh64(kdhl.dumpextent);
|
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);
|
"first and last dump headers disagree on %s", device);
|
||||||
nerr++;
|
nerr++;
|
||||||
status = STATUS_BAD;
|
status = STATUS_BAD;
|
||||||
if (force == false)
|
if (!force)
|
||||||
goto closefd;
|
goto closefd;
|
||||||
} else {
|
} else {
|
||||||
status = STATUS_GOOD;
|
status = STATUS_GOOD;
|
||||||
@ -1148,7 +1148,7 @@ main(int argc, char **argv)
|
|||||||
verbose++;
|
verbose++;
|
||||||
break;
|
break;
|
||||||
case 'z':
|
case 'z':
|
||||||
compress = 1;
|
compress = true;
|
||||||
break;
|
break;
|
||||||
case '?':
|
case '?':
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user