debuggers.hg

changeset 20690:4bde3bb310b4

mini-os: Fix a compilation error in xencons_ring when !HAVE_LIBC

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Dec 14 11:38:15 2009 +0000 (2009-12-14)
parents 23bc248302df
children 1e9441f4dcbd
files extras/mini-os/console/xencons_ring.c
line diff
     1.1 --- a/extras/mini-os/console/xencons_ring.c	Mon Dec 14 09:51:07 2009 +0000
     1.2 +++ b/extras/mini-os/console/xencons_ring.c	Mon Dec 14 11:38:15 2009 +0000
     1.3 @@ -67,8 +67,8 @@ int xencons_ring_send(struct consfront_d
     1.4  
     1.5  static void handle_input(evtchn_port_t port, struct pt_regs *regs, void *data)
     1.6  {
     1.7 +	struct consfront_dev *dev = (struct consfront_dev *) data;
     1.8  #ifdef HAVE_LIBC
     1.9 -	struct consfront_dev *dev = (struct consfront_dev *) data;
    1.10          int fd = dev ? dev->fd : -1;
    1.11  
    1.12          if (fd != -1)