mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-10-06 10:59:48 +08:00
fstests/fsrdwr: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one. This addresses warnings that only occurred on 64-bit targets. For the ones which only appeared on 64-bit targets, the cause was frequently a mismatch when comparing a combination off_t, ssize_t, and int.
This commit is contained in:
committed by
Gedare Bloom
parent
b98b397491
commit
ec5d809fa2
@@ -56,7 +56,7 @@ static const char databuf[] =
|
||||
"4Happy days are here again.5Happy days are here again.6Happy days are here "
|
||||
"again.7Happy days are here again.";
|
||||
|
||||
static const size_t len = sizeof( databuf ) - 1;
|
||||
static const ssize_t len = sizeof( databuf ) - 1;
|
||||
|
||||
static void test_case_enter( const char *wd )
|
||||
{
|
||||
@@ -229,10 +229,9 @@ static void truncate_test03( void )
|
||||
int status;
|
||||
char *name01 = "name01";
|
||||
struct stat statbuf;
|
||||
|
||||
char data;
|
||||
int n;
|
||||
size_t i;
|
||||
char data;
|
||||
int n;
|
||||
ssize_t i;
|
||||
|
||||
char *readbuf;
|
||||
off_t good_size = 100;
|
||||
|
||||
Reference in New Issue
Block a user