|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.7] tools/libxl: libxl_set_memory_target: Fix compile error in backport
commit dc309dd5d9153f7d75d6afcc20592d30b1a29c73
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
AuthorDate: Sat Jan 21 18:52:28 2017 +0000
Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CommitDate: Sat Jan 21 18:52:28 2017 +0000
tools/libxl: libxl_set_memory_target: Fix compile error in backport
013ee593ca04 the backport of "libxl: fix libxl_set_memory_target"
was broken:
libxl.c:5034:5: error: 'r' undeclared (first use in this function)
This is because this old version of the function uses
(inappropriately) rc for libxc error returns.
Fix this by introducing `int r'. We now use this in our backport,
even though the rest of the function is incoherent about the use of
rc.
Reported-by: Doug Goldstein <cardoe@xxxxxxxxxx>
Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
tools/libxl/libxl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index 322164b..f66f440 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -4925,6 +4925,7 @@ int libxl_set_memory_target(libxl_ctx *ctx, uint32_t
domid,
char *uuid;
xs_transaction_t t;
libxl__domain_userdata_lock *lock;
+ int r;
CTX_LOCK;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.7
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |