From 706f8b937dd967c216f762cbb62fd98eca6c591c Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 12 Jul 2011 11:05:20 +0000 Subject: [PATCH] Reacted on warning of cppcheck about test/poll.c --- cdrskin/cdrskin_timestamp.h | 2 +- test/poll.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index efd1945..36672a8 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.07.12.110405" +#define Cdrskin_timestamP "2011.07.12.110453" diff --git a/test/poll.c b/test/poll.c index 7e170ea..4026a84 100644 --- a/test/poll.c +++ b/test/poll.c @@ -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) {