debuggers.hg
changeset 22878:74fb7eaa6597
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>
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>
author | Daniel Kiper <dkiper@net-space.pl> |
---|---|
date | Thu Jan 27 19:51:47 2011 +0000 (2011-01-27) |
parents | e429b133278b |
children | f68570fb0032 |
files | tools/security/secpol_tool.c |
line diff
1.1 --- a/tools/security/secpol_tool.c Thu Jan 27 19:42:40 2011 +0000 1.2 +++ b/tools/security/secpol_tool.c Thu Jan 27 19:51:47 2011 +0000 1.3 @@ -511,7 +511,7 @@ int main(int argc, char **argv) 1.4 if (argc != 2) 1.5 usage(argv[0]); 1.6 1.7 - if ((xc_handle = xc_interface_open()) == 0) { 1.8 + if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) { 1.9 printf("ERROR: Could not open xen privcmd device!\n"); 1.10 exit(-1); 1.11 } 1.12 @@ -523,7 +523,7 @@ int main(int argc, char **argv) 1.13 if (argc != 3) 1.14 usage(argv[0]); 1.15 1.16 - if ((xc_handle = xc_interface_open()) == 0) { 1.17 + if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) { 1.18 printf("ERROR: Could not open xen privcmd device!\n"); 1.19 exit(-1); 1.20 } 1.21 @@ -535,7 +535,7 @@ int main(int argc, char **argv) 1.22 if (argc != 2) 1.23 usage(argv[0]); 1.24 1.25 - if ((xc_handle = xc_interface_open()) == 0) { 1.26 + if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) { 1.27 printf("ERROR: Could not open xen privcmd device!\n"); 1.28 exit(-1); 1.29 }