1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Change to spell erasing right.

PR 26306 but implemented differently by me.
This commit is contained in:
Søren Schmidt 2001-05-30 08:13:39 +00:00
parent 28e3e06ebc
commit 94c99813a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77477

View File

@ -141,13 +141,14 @@ main(int argc, char **argv)
}
if (!strcmp(argv[arg], "erase") || !strcmp(argv[arg], "blank")){
int error, blank, percent;
if (!quiet)
fprintf(stderr, "%sing CD, please wait..\r",
argv[arg]);
if (!strcmp(argv[arg], "erase"))
blank = CDR_B_ALL;
else
blank = CDR_B_MIN;
if (!quiet)
fprintf(stderr, "%sing CD, please wait..\r",
blank == CDR_B_ALL ? "eras" : "blank");
if (ioctl(fd, CDRIOCBLANK, &blank) < 0)
err(EX_IOERR, "ioctl(CDRIOCBLANK)");
@ -156,9 +157,9 @@ main(int argc, char **argv)
error = ioctl(fd, CDRIOCGETPROGRESS, &percent);
if (percent > 0 && !quiet)
fprintf(stderr,
"%sing CD - %d %% done"
" \r",
argv[arg], percent);
"%sing CD - %d %% done \r",
blank == CDR_B_ALL ?
"eras" : "blank", percent);
if (error || percent == 100)
break;
}