debuggers.hg

changeset 22868:7873885ec74d

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 <lists.xen@nuclearfallout.net>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
author John Weekes <lists.xen@nuclearfallout.net>
date Thu Jan 27 09:37:19 2011 +0000 (2011-01-27)
parents 5ce41defa1fa
children 48008a2cbc1e
files extras/mini-os/lib/sys.c
line diff
     1.1 --- a/extras/mini-os/lib/sys.c	Wed Jan 26 16:11:41 2011 +0000
     1.2 +++ b/extras/mini-os/lib/sys.c	Thu Jan 27 09:37:19 2011 +0000
     1.3 @@ -178,10 +178,10 @@ int posix_openpt(int flags)
     1.4      return(dev->fd);
     1.5  }
     1.6  
     1.7 -int open_savefile(char *path, int save)
     1.8 +int open_savefile(const char *path, int save)
     1.9  {
    1.10      struct consfront_dev *dev;
    1.11 -    char *nodename[64];
    1.12 +    char nodename[64];
    1.13  
    1.14      snprintf(nodename, sizeof(nodename), "device/console/%d", save ? SAVE_CONSOLE : RESTORE_CONSOLE);
    1.15  
    1.16 @@ -286,7 +286,7 @@ int write(int fd, const void *buf, size_
    1.17                  while (nbytes > 0) {
    1.18                      ret = xencons_ring_send(files[fd].cons.dev, (char *)buf, nbytes);
    1.19                      nbytes -= ret;
    1.20 -                    buf += ret;
    1.21 +                    buf = (char *)buf + ret;
    1.22                  }
    1.23                  return tot - nbytes;
    1.24              }