aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comport/comport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/comport/comport.c b/comport/comport.c
index 5ee24c3..fc516fb 100644
--- a/comport/comport.c
+++ b/comport/comport.c
@@ -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;
}