aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kiper <dkiper@net-space.pl>2011-01-27 19:51:47 +0000
committerDaniel Kiper <dkiper@net-space.pl>2011-01-27 19:51:47 +0000
commitef698bba61b7907b8373f18869ddbaa13b41eef0 (patch)
tree217f977dd3775204e16ddeab90d5d9b649760775
parentabf1efa40dc02ce61f2d3dc446f527fa3efd427b (diff)
downloadxen-ef698bba61b7907b8373f18869ddbaa13b41eef0.tar.gz
xen-ef698bba61b7907b8373f18869ddbaa13b41eef0.tar.bz2
xen-ef698bba61b7907b8373f18869ddbaa13b41eef0.zip
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@citrix.com> Signed-off-by: Daniel Kiper <dkiper@net-space.pl> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r--tools/security/secpol_tool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/security/secpol_tool.c b/tools/security/secpol_tool.c
index bc85a93e92..792739e22d 100644
--- a/tools/security/secpol_tool.c
+++ b/tools/security/secpol_tool.c
@@ -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);
}