]> xenbits.xensource.com Git - xen.git/commit
libxc: Fix xc_pm API calls to return negative error and stash error in errno.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Mar 2015 00:24:12 +0000 (20:24 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 20 Mar 2015 16:04:35 +0000 (16:04 +0000)
commit73367cf3b4b450475e3ac468abb3467d4b61b09c
treeced560ee849ee1beb15bd203530cd82db98497ac
parent34059d8e3d85a4a7d2313102152b4d31df3cb950
libxc: Fix xc_pm API calls to return negative error and stash error in errno.

Oddly enough the user of this API did the right thing -
check for return being negative and used 'errno' for the
real error.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_pm.c