]> xenbits.xensource.com Git - xen.git/commit
libxl: Fix incorrect return of OSEVENT_HOOK macro
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 10 May 2012 11:19:15 +0000 (12:19 +0100)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 10 May 2012 11:19:15 +0000 (12:19 +0100)
commitba57e19f6c527a784ba24ddadecc59da2effc608
tree0e6f139a55805be7d230bc13200e99d78053d761
parentf5eca5dedd39ddb489fa505cb668eb93ba08937c
libxl: Fix incorrect return of OSEVENT_HOOK macro

The OSEVENT_HOOK_INTERN macro incorrectly returned the value of the
expression CTX->osevent_in_hook-- (usually 1) instead of the value of
the function call it made. Fix the macro to return the proper value.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 tools/libxl/libxl_event.c |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)
tools/libxl/libxl_event.c