serial: sandbox: use ssize_t to match os_read
[platform/kernel/u-boot.git] / drivers / serial / sandbox.c
index cae6c94..814a0f9 100644 (file)
@@ -50,7 +50,7 @@ void serial_puts(const char *str)
 int serial_getc(void)
 {
        char buf;
-       int count;
+       ssize_t count;
 
        count = os_read(0, &buf, 1);
        return count == 1 ? buf : 0;