From b920b2c76176ef8850806fb578a4619f1a83e51f Mon Sep 17 00:00:00 2001 From: John Weekes Date: Thu, 27 Jan 2011 09:37:19 +0000 Subject: minios: Fix bug/build problem introduced in c/s 22799 With "debug=n", "make stubdom" currently fails in xen-unstable. This patch addresses this through minor fixups. Signed-off-by: John Weekes Acked-by: Stefano Stabellini --- extras/mini-os/lib/sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extras') diff --git a/extras/mini-os/lib/sys.c b/extras/mini-os/lib/sys.c index 7a49886e2d..b7b3aff50a 100644 --- a/extras/mini-os/lib/sys.c +++ b/extras/mini-os/lib/sys.c @@ -178,10 +178,10 @@ int posix_openpt(int flags) return(dev->fd); } -int open_savefile(char *path, int save) +int open_savefile(const char *path, int save) { struct consfront_dev *dev; - char *nodename[64]; + char nodename[64]; snprintf(nodename, sizeof(nodename), "device/console/%d", save ? SAVE_CONSOLE : RESTORE_CONSOLE); @@ -286,7 +286,7 @@ int write(int fd, const void *buf, size_t nbytes) while (nbytes > 0) { ret = xencons_ring_send(files[fd].cons.dev, (char *)buf, nbytes); nbytes -= ret; - buf += ret; + buf = (char *)buf + ret; } return tot - nbytes; } -- cgit v1.2.3