mirror of
https://github.com/opnsense/src.git
synced 2026-02-12 15:24:40 -05:00
Oops, still leftovers from yesterdays remote commit problems.
Proberly restore blocksize on the device.
This commit is contained in:
parent
d0fd62ec07
commit
2a6830d22e
1 changed files with 3 additions and 3 deletions
|
|
@ -175,7 +175,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if (ioctl(fd, CDRIOCSETBLOCKSIZE, &saved_block_size) < 0)
|
||||
err(EX_IOERR, "ioctl(CDRIOCGETBLOCKSIZE)");
|
||||
err(EX_IOERR, "ioctl(CDRIOCSETBLOCKSIZE)");
|
||||
|
||||
if (eject)
|
||||
if (ioctl(fd, CDIOCEJECT) < 0)
|
||||
|
|
@ -185,6 +185,6 @@ main(int argc, char **argv)
|
|||
|
||||
void cleanup(int dummy)
|
||||
{
|
||||
if (ioctl(fd, CDRIOCGETBLOCKSIZE, &saved_block_size) < 0)
|
||||
err(EX_IOERR, "ioctl(CDRIOCGETBLOCKSIZE)");
|
||||
if (ioctl(fd, CDRIOCSETBLOCKSIZE, &saved_block_size) < 0)
|
||||
err(EX_IOERR, "ioctl(CDRIOCSETBLOCKSIZE)");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue