load-tester: Fix load-tester on platforms where plain `char` is signed

fgetc() returns an int and EOF is usually -1 so when this gets casted to
a char the result depends on whether `char` means `signed char` or
`unsigned char` (the C standard does not specify it).  If it is unsigned
then its value is 0xff so the comparison with EOF will fail as that is an
implicit signed int.
This commit is contained in:
Tobias Brunner 2016-06-17 10:22:25 +02:00
parent 67b9e151fa
commit 5947d48fb9
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ static FILE* make_connection()
static int initiate(unsigned int count, unsigned int delay)
{
FILE *stream;
char c;
int c;
stream = make_connection();
if (!stream)