Reacted on warning of cppcheck about test/poll.c
This commit is contained in:
parent
ec9bc5678b
commit
706f8b937d
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2011.07.12.110405"
|
#define Cdrskin_timestamP "2011.07.12.110453"
|
||||||
|
@ -20,8 +20,6 @@ static void catch_int ()
|
|||||||
|
|
||||||
static void poll_drive(int d)
|
static void poll_drive(int d)
|
||||||
{
|
{
|
||||||
enum burn_disc_status s;
|
|
||||||
|
|
||||||
fprintf(stderr, "polling disc in %s - %s:\n",
|
fprintf(stderr, "polling disc in %s - %s:\n",
|
||||||
drives[d].vendor, drives[d].product);
|
drives[d].vendor, drives[d].product);
|
||||||
|
|
||||||
@ -33,8 +31,7 @@ static void poll_drive(int d)
|
|||||||
while (burn_drive_get_status(drives[d].drive, NULL))
|
while (burn_drive_get_status(drives[d].drive, NULL))
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
|
|
||||||
while ((s = burn_disc_get_status(drives[d].drive))
|
while (burn_disc_get_status(drives[d].drive) == BURN_DISC_UNREADY)
|
||||||
== BURN_DISC_UNREADY)
|
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
|
|
||||||
while (NEXT == 0) {
|
while (NEXT == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user