mirror of
https://git.code.sf.net/p/fuse-emulator/fuse
synced 2026-01-28 14:20:54 +03:00
Remove a couple of --enable-warnings warnings about unsigned < 0
comparisons. Legacy-ID: 563
This commit is contained in:
@@ -460,7 +460,7 @@ specplus3_disk_insert( specplus3_drive_number which, const char *filename )
|
||||
struct flock lock;
|
||||
size_t i; int error;
|
||||
|
||||
if( which < SPECPLUS3_DRIVE_A || which > SPECPLUS3_DRIVE_B ) {
|
||||
if( which > SPECPLUS3_DRIVE_B ) {
|
||||
ui_error( UI_ERROR_ERROR, "specplus3_disk_insert: unknown drive %d\n",
|
||||
which );
|
||||
fuse_abort();
|
||||
@@ -552,7 +552,7 @@ specplus3_disk_eject( specplus3_drive_number which )
|
||||
{
|
||||
int error;
|
||||
|
||||
if( which < SPECPLUS3_DRIVE_A || which > SPECPLUS3_DRIVE_B ) {
|
||||
if( which > SPECPLUS3_DRIVE_B ) {
|
||||
ui_error( UI_ERROR_ERROR, "specplus3_disk_eject: unknown drive %d\n",
|
||||
which );
|
||||
fuse_abort();
|
||||
|
||||
@@ -60,7 +60,7 @@ void specplus3_memoryport_write(WORD port, BYTE b);
|
||||
/* The +3's drives */
|
||||
|
||||
typedef enum specplus3_drive_number {
|
||||
SPECPLUS3_DRIVE_A = 0,
|
||||
SPECPLUS3_DRIVE_A = 0, /* First drive must be number zero */
|
||||
SPECPLUS3_DRIVE_B,
|
||||
} specplus3_drive_number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user