aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_evtchn.c
diff options
context:
space:
mode:
authorkaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk>2004-10-31 08:17:49 +0000
committerkaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk>2004-10-31 08:17:49 +0000
commit187a0366b6643f7eca4e7121012f4e8bfd231e70 (patch)
tree947b2a90ab33c8c1ad3b5e134e13e0b4fac8ffff /tools/libxc/xc_evtchn.c
parent7e047ac994eb5c2b6bdad42d0580cb9b44d2c4b8 (diff)
downloadxen-187a0366b6643f7eca4e7121012f4e8bfd231e70.tar.gz
xen-187a0366b6643f7eca4e7121012f4e8bfd231e70.tar.bz2
xen-187a0366b6643f7eca4e7121012f4e8bfd231e70.zip
bitkeeper revision 1.1159.142.2 (41849fadYlUYMwSy6tcq8Y-Yi8NMZA)
Clean up libxc by allowing direct use of Xen headers from userland: #include <xen/...>
Diffstat (limited to 'tools/libxc/xc_evtchn.c')
-rw-r--r--tools/libxc/xc_evtchn.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/tools/libxc/xc_evtchn.c b/tools/libxc/xc_evtchn.c
index 2f78ef7936..9371e61261 100644
--- a/tools/libxc/xc_evtchn.c
+++ b/tools/libxc/xc_evtchn.c
@@ -134,21 +134,7 @@ int xc_evtchn_status(int xc_handle,
op.u.status.port = port;
if ( (rc = do_evtchn_op(xc_handle, &op)) == 0 )
- {
- switch ( status->status = op.u.status.status )
- {
- case EVTCHNSTAT_interdomain:
- status->u.interdomain.dom = (u16)op.u.status.u.interdomain.dom;
- status->u.interdomain.port = op.u.status.u.interdomain.port;
- break;
- case EVTCHNSTAT_pirq:
- status->u.pirq = op.u.status.u.pirq;
- break;
- case EVTCHNSTAT_virq:
- status->u.virq = op.u.status.u.virq;
- break;
- }
- }
+ memcpy(status, &op.u.status, sizeof(*status));
return rc;
}