WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] tools/security: Adjust secpol_tool.c for

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools/security: Adjust secpol_tool.c for change to xc_interface_open
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Sat, 29 Jan 2011 15:05:48 -0800
Delivery-date: Sat, 29 Jan 2011 15:12:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools/security: Adjust secpol_tool.c for change to xc_interface_open, Xen patchbot-unstable <=