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] null_set_binary_policy() should return ACM_OK instead of

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] null_set_binary_policy() should return ACM_OK instead of -1. This
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Thu, 23 Jun 2005 12:32:17 +0000
Cc: james@xxxxxxxxxxxxx
Delivery-date: Thu, 23 Jun 2005 13:02:16 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1743, 2005/06/23 13:32:17+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        null_set_binary_policy() should return ACM_OK instead of -1. This
        patch also makes few cleanups.
        
        Signed-off-by: Nguyen Anh Quynh <aquynh@xxxxxxxxx>



 acm_null_hooks.c |    9 +--------
 1 files changed, 1 insertion(+), 8 deletions(-)


diff -Nru a/xen/acm/acm_null_hooks.c b/xen/acm/acm_null_hooks.c
--- a/xen/acm/acm_null_hooks.c  2005-06-23 09:03:26 -04:00
+++ b/xen/acm/acm_null_hooks.c  2005-06-23 09:03:26 -04:00
@@ -19,28 +19,23 @@
        return ACM_OK;
 }
 
-
 static void
 null_free_domain_ssid(void *chwall_ssid)
 {
        return;
 }
 
-
 static int
 null_dump_binary_policy(u8 *buf, u16 buf_size) 
 {      
        return 0;
 }
 
-
-
 static int
 null_set_binary_policy(u8 *buf, u16 buf_size) 
 {      
-       return -1;
+       return ACM_OK;
 }
-
        
 static int 
 null_dump_stats(u8 *buf, u16 buf_size)
@@ -49,7 +44,6 @@
        return 0;
 }
 
-
 /* now define the hook structure similarly to LSM */
 struct acm_operations acm_null_ops = {
        .init_domain_ssid               = null_init_domain_ssid,
@@ -72,5 +66,4 @@
        .fail_grant_map_ref             = NULL,
        .pre_grant_setup                = NULL,
        .fail_grant_setup               = NULL
-
 };

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] null_set_binary_policy() should return ACM_OK instead of -1. This, BitKeeper Bot <=