All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] stubdom: fix do_xen_hypercall error report
@ 2008-07-24 19:03 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-07-24 19:03 UTC (permalink / raw)
  To: xen-devel

stubdom: fix do_xen_hypercall error report

call.result is an unsigned long

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>

diff -r 70a43a82aaf1 tools/libxc/xc_minios.c
--- a/tools/libxc/xc_minios.c	Tue Jul 22 16:31:03 2008 +0100
+++ b/tools/libxc/xc_minios.c	Thu Jul 24 19:59:41 2008 +0100
@@ -102,8 +102,8 @@
 	errno = -ret;
 	return -1;
     }
-    if (call.result < 0) {
-        errno = -call.result;
+    if ((long) call.result < 0) {
+        errno = - (long) call.result;
         return -1;
     }
     return call.result;

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

only message in thread, other threads:[~2008-07-24 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-24 19:03 [PATCH] stubdom: fix do_xen_hypercall error report Samuel Thibault

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.