All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mini-os: Fix an compilation error in xencons_ring
@ 2009-12-14  9:56 Yu Zhiguo
  0 siblings, 0 replies; only message in thread
From: Yu Zhiguo @ 2009-12-14  9:56 UTC (permalink / raw)
  To: Stefano Stabellini, xen-devel@lists.xensource.com

Fix an compilation error in xencons_ring if undefined HAVE_LIBC.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>


diff --git a/extras/mini-os/console/xencons_ring.c b/extras/mini-os/console/xencons_ring.c
--- a/extras/mini-os/console/xencons_ring.c
+++ b/extras/mini-os/console/xencons_ring.c
@@ -67,8 +67,8 @@
 
 static void handle_input(evtchn_port_t port, struct pt_regs *regs, void *data)
 {
+	struct consfront_dev *dev = (struct consfront_dev *) data;
 #ifdef HAVE_LIBC
-	struct consfront_dev *dev = (struct consfront_dev *) data;
         int fd = dev ? dev->fd : -1;
 
         if (fd != -1)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-14  9:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14  9:56 [PATCH] mini-os: Fix an compilation error in xencons_ring Yu Zhiguo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.