]> git.sur5r.net Git - u-boot/commitdiff
serial: sandbox: use ssize_t to match os_read
authorMike Frysinger <vapier@gentoo.org>
Wed, 26 Oct 2011 00:21:01 +0000 (00:21 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 3 Nov 2011 21:35:16 +0000 (22:35 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/serial/sandbox.c

index cae6c9411c808edb14a8a69eab788da7e29b7385..814a0f9e7fcfc17d7796f03037047f0436cdeacb 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;