Reacted on -Wsign-compare warnings of gcc

This commit is contained in:
Thomas Schmitt 2011-05-12 13:51:44 +00:00
parent 8bd288e10c
commit 0ac6a64f12
2 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.05.12.135116" #define Cdrskin_timestamP "2011.05.12.135217"

View File

@ -1,6 +1,6 @@
/* test/telltoc.c , API illustration of obtaining media status info */ /* test/telltoc.c , API illustration of obtaining media status info */
/* Copyright (C) 2006 - 2010 Thomas Schmitt <scdbackup@gmx.net> /* Copyright (C) 2006 - 2011 Thomas Schmitt <scdbackup@gmx.net>
Provided under GPL */ Provided under GPL */
/** Overview /** Overview
@ -178,7 +178,7 @@ int telltoc_aquire_by_driveno(int *driveno, int silent_drive)
} }
fprintf(stderr, "Done\n"); fprintf(stderr, "Done\n");
for (i = 0; i < drive_count; i++) { for (i = 0; i < (int) drive_count; i++) {
if (*driveno >= 0 && (silent_drive || *driveno != i)) if (*driveno >= 0 && (silent_drive || *driveno != i))
continue; continue;
if (burn_drive_get_adr(&(drive_list[i]), adr) <=0) if (burn_drive_get_adr(&(drive_list[i]), adr) <=0)
@ -197,7 +197,7 @@ int telltoc_aquire_by_driveno(int *driveno, int silent_drive)
/* We already made our choice via command line. (default is 0) /* We already made our choice via command line. (default is 0)
So we just have to keep our desired drive and drop all others. So we just have to keep our desired drive and drop all others.
*/ */
if (drive_count <= *driveno) { if ((int) drive_count <= *driveno) {
fprintf(stderr, fprintf(stderr,
"Found only %d drives. Number %d not available.\n", "Found only %d drives. Number %d not available.\n",
drive_count, *driveno); drive_count, *driveno);
@ -205,7 +205,7 @@ int telltoc_aquire_by_driveno(int *driveno, int silent_drive)
} }
/* Drop all drives which we do not want to use */ /* Drop all drives which we do not want to use */
for (i = 0; i < drive_count; i++) { for (i = 0; i < (int) drive_count; i++) {
if (i == *driveno) /* the one drive we want to keep */ if (i == *driveno) /* the one drive we want to keep */
continue; continue;
ret = burn_drive_info_forget(&(drive_list[i]),0); ret = burn_drive_info_forget(&(drive_list[i]),0);