Reacted on -Wsign-compare warnings of gcc
This commit is contained in:
parent
28078d059a
commit
8bd288e10c
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2011.05.12.135008"
|
#define Cdrskin_timestamP "2011.05.12.135116"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
/* test/libburner.c , API illustration of burning data or audio tracks to CD */
|
/* test/libburner.c , API illustration of burning data or audio tracks to CD */
|
||||||
/* Copyright (C) 2005 - 2010 Thomas Schmitt <scdbackup@gmx.net> */
|
/* Copyright (C) 2005 - 2011 Thomas Schmitt <scdbackup@gmx.net> */
|
||||||
/* Provided under GPL, see also "License and copyright aspects" at file end */
|
/* Provided under GPL, see also "License and copyright aspects" at file end */
|
||||||
|
|
||||||
|
|
||||||
@ -218,7 +218,7 @@ int libburner_aquire_by_driveno(int *driveno)
|
|||||||
printf("\nOverview of accessible drives (%d found) :\n",
|
printf("\nOverview of accessible drives (%d found) :\n",
|
||||||
drive_count);
|
drive_count);
|
||||||
printf("-----------------------------------------------------------------------------\n");
|
printf("-----------------------------------------------------------------------------\n");
|
||||||
for (i = 0; i < drive_count; i++) {
|
for (i = 0; i < (int) drive_count; i++) {
|
||||||
if (burn_drive_get_adr(&(drive_list[i]), adr) <=0)
|
if (burn_drive_get_adr(&(drive_list[i]), adr) <=0)
|
||||||
strcpy(adr, "-get_adr_failed-");
|
strcpy(adr, "-get_adr_failed-");
|
||||||
printf("%d --drive '%s' : '%s' '%s'\n",
|
printf("%d --drive '%s' : '%s' '%s'\n",
|
||||||
@ -255,7 +255,7 @@ int libburner_aquire_by_driveno(int *driveno)
|
|||||||
printf("Pseudo-drive \"-\" given : bus scanning done.\n");
|
printf("Pseudo-drive \"-\" given : bus scanning done.\n");
|
||||||
return 2; /* the program will end after this */
|
return 2; /* the program will end after this */
|
||||||
}
|
}
|
||||||
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);
|
||||||
@ -263,7 +263,7 @@ int libburner_aquire_by_driveno(int *driveno)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user