With "debug=n", "make stubdom" currently fails in xen-unstable. This
patch addresses this through minor fixups.
Signed-off-by: John Weekes <lists.xen@nuclearfallout.net>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
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);
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;
}