Slight change at line 1017 to avoid unsigned/signed warning.

svn path=/trunk/externals/iem/comport/; revision=8803
This commit is contained in:
Martin Peach 2007-10-12 00:40:13 +00:00
parent ea14c0fe89
commit ef4e9582e1

View file

@ -1014,7 +1014,7 @@ static int write_serial(t_comport *x, unsigned char serial_byte)
static int write_serials(t_comport *x, unsigned char *serial_buf, size_t buf_length)
{
int result = write(x->comhandle,(char *)serial_buf, buf_length);
if (result != buf_length)
if (result != (int)buf_length)
post ("[comport] write returned %d, errno is %d", result, errno);
return result;
}