obmc-console: Fix bugprone-narrowing-conversions
For example:
```
/mnt/host/andrew/home/andrew/src/openbmc/obmc-console/build/../console-server.c:769:9: error: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,-warnings-as-errors]
rc = read(console->tty_fd, buf, sizeof(buf));
^
```
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I67c158b411f1533ca3b5a62803116e95907e8c5b
diff --git a/console-client.c b/console-client.c
index 13bd20d..c63677a 100644
--- a/console-client.c
+++ b/console-client.c
@@ -156,7 +156,8 @@
static int process_console(struct console_client *client)
{
uint8_t buf[4096];
- int len, rc;
+ ssize_t len;
+ int rc;
len = read(client->console_sd, buf, sizeof(buf));
if (len < 0) {