libxl: fix xcflags assignment in libxl__domain_suspend
authorOlaf Hering <olaf@aepfle.de>
Tue, 5 Feb 2013 11:31:11 +0000 (11:31 +0000)
committerOlaf Hering <olaf@aepfle.de>
Tue, 5 Feb 2013 11:31:11 +0000 (11:31 +0000)
Currently ->xcflags remains 1 because the braces are placed incorrectly.
Put each logical unit into its own braces to fix assigment to xcflags.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dom.c

index 7586a6c97c1e9bd6facc18b33f2ebd71fbbab10b..6b3b3c3e1901022d5e8cd60b56128e597b9e204b 100644 (file)
@@ -1238,9 +1238,9 @@ void libxl__domain_suspend(libxl__egc *egc, libxl__domain_suspend_state *dss)
         abort();
     }
 
-    dss->xcflags = (live) ? XCFLAGS_LIVE : 0
-          | (debug) ? XCFLAGS_DEBUG : 0
-          | (dss->hvm) ? XCFLAGS_HVM : 0;
+    dss->xcflags = (live ? XCFLAGS_LIVE : 0)
+          | (debug ? XCFLAGS_DEBUG : 0)
+          | (dss->hvm ? XCFLAGS_HVM : 0);
 
     dss->suspend_eventchn = -1;
     dss->guest_responded = 0;