Skip to contentSkip to conversation

fix build break by adding missing paranthesis after cleanup

BUGFIX Applied Reiner Sailer 2 participants 2 messages Aug 23, 2006

lore
Share & tools
lore
#0 lore raw

This small patch adds back a closing paranthesis that has gone lost. It fixes the build for the Xen access control module.

Signed-off by: Reiner Sailer <[email protected]>

xen/acm/acm_simple_type_enforcement_hooks.c +1 -1
Index: xen-unstable.hg-shype/xen/acm/acm_simple_type_enforcement_hooks.c
===================================================================
@@ -353,7 +353,7 @@ ste_dump_stats(u8 *buf, u16 buf_len)
     stats.ec_cachehit_count = htonl(atomic_read(&ste_bin_pol.ec_cachehit_count));
     stats.gt_cachehit_count = htonl(atomic_read(&ste_bin_pol.gt_cachehit_count));
 
-    if (buf_len < sizeof(struct acm_ste_stats_buffer)
+    if (buf_len < sizeof(struct acm_ste_stats_buffer))
         return -ENOMEM;
 
     memcpy(buf, &stats, sizeof(struct acm_ste_stats_buffer));

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 11 lines · Reiner Sailer

This small patch adds back a closing paranthesis that has gone lost. It fixes the build for the Xen access control module.

Signed-off by: Reiner Sailer <[email protected]>

Index: xen-unstable.hg-shype/xen/acm/acm_simple_type_enforcement_hooks.c
===================================================================

xen/acm/acm_simple_type_enforcement_hooks.c ste_dump_stats(u8 *buf, u16 buf_len) · line 359

Quoted 8 lines
xen/acm/acm_simple_type_enforcement_hooks.c +1 -1
@@ -353,7 +353,7 @@ ste_dump_stats(u8 *buf, u16 buf_len)
     stats.ec_cachehit_count = htonl(atomic_read(&ste_bin_pol.ec_cachehit_count));
     stats.gt_cachehit_count = htonl(atomic_read(&ste_bin_pol.gt_cachehit_count));
 
-    if (buf_len < sizeof(struct acm_ste_stats_buffer)
+    if (buf_len < sizeof(struct acm_ste_stats_buffer))
         return -ENOMEM;
 
     memcpy(buf, &stats, sizeof(struct acm_ste_stats_buffer));

Applied, thanks.

Ewan.