Reacted on warning of cppcheck about test/poll.c

This commit is contained in:
Thomas Schmitt 2011-07-12 11:05:20 +00:00
parent 846953a7e8
commit 21fe02743d
2 changed files with 2 additions and 5 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.07.12.110405"
#define Cdrskin_timestamP "2011.07.12.110453"

View File

@ -20,8 +20,6 @@ static void catch_int ()
static void poll_drive(int d)
{
enum burn_disc_status s;
fprintf(stderr, "polling disc in %s - %s:\n",
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))
usleep(1000);
while ((s = burn_disc_get_status(drives[d].drive))
== BURN_DISC_UNREADY)
while (burn_disc_get_status(drives[d].drive) == BURN_DISC_UNREADY)
usleep(1000);
while (NEXT == 0) {