# HG changeset patch
# User Daniel Kiper <dkiper@xxxxxxxxxxxx>
# Date 1296157907 0
# Node ID 74fb7eaa6597b6e912b3d6f81fd8158a87154fe6
# Parent e429b133278b37fbb22a9afc2230e35f4bfcb9f3
tools/security: Adjust secpol_tool.c for change to xc_interface_open
xc_interface_open() was called with improper number of arguments. It
is fixed by this patch.
This appears to have been missed by 21483:779c0ef9682c. The interface
change also included the return type (int->xc_interface *) but that
was already covered in 21483.
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/security/secpol_tool.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -r e429b133278b -r 74fb7eaa6597 tools/security/secpol_tool.c
--- a/tools/security/secpol_tool.c Thu Jan 27 19:42:40 2011 +0000
+++ b/tools/security/secpol_tool.c Thu Jan 27 19:51:47 2011 +0000
@@ -511,7 +511,7 @@ int main(int argc, char **argv)
if (argc != 2)
usage(argv[0]);
- if ((xc_handle = xc_interface_open()) == 0) {
+ if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
printf("ERROR: Could not open xen privcmd device!\n");
exit(-1);
}
@@ -523,7 +523,7 @@ int main(int argc, char **argv)
if (argc != 3)
usage(argv[0]);
- if ((xc_handle = xc_interface_open()) == 0) {
+ if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
printf("ERROR: Could not open xen privcmd device!\n");
exit(-1);
}
@@ -535,7 +535,7 @@ int main(int argc, char **argv)
if (argc != 2)
usage(argv[0]);
- if ((xc_handle = xc_interface_open()) == 0) {
+ if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
printf("ERROR: Could not open xen privcmd device!\n");
exit(-1);
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|