summaryrefslogtreecommitdiff
path: root/src/xenfb_monitor.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2011-05-31 18:44:56 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2011-05-31 18:44:56 -0400
commitae0f8dc801f186d04d9d33e7a0e4419003aeba5a (patch)
tree340e4d1924555a0e63c3fbd191e0240490758997 /src/xenfb_monitor.c
parentd64a2730135bffdaa3204cd4ce872e16f21e5377 (diff)
Remove QEMU malloc/free macros.
Diffstat (limited to 'src/xenfb_monitor.c')
-rw-r--r--src/xenfb_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xenfb_monitor.c b/src/xenfb_monitor.c
index 77b17e7..097c14e 100644
--- a/src/xenfb_monitor.c
+++ b/src/xenfb_monitor.c
@@ -118,7 +118,7 @@ static int fb_initialise(struct XenDevice *xendev)
static void fb_frontend_changed(struct XenDevice *xendev, const char *node)
{
- struct XenFB *fb = container_of(xendev, struct XenFB, c.xendev);
+ struct XenFB *fb = (struct XenFB *)xendev;
/*
* Set state to Connected *again* once the frontend switched
@@ -136,7 +136,7 @@ static void fb_frontend_changed(struct XenDevice *xendev, const char *node)
static void fb_disconnect(struct XenDevice *xendev)
{
- struct XenFB *fb = container_of(xendev, struct XenFB, c.xendev);
+ struct XenFB *fb = (struct XenFB *)xendev;
fb->feature_update = 0;
fb->bug_trigger = 0;