43fe83
From f3ee83ac90bbea17541cd11bd917e6016eb338b6 Mon Sep 17 00:00:00 2001
43fe83
Message-Id: <f3ee83ac90bbea17541cd11bd917e6016eb338b6.1377873640.git.jdenemar@redhat.com>
43fe83
From: Peter Krempa <pkrempa@redhat.com>
43fe83
Date: Fri, 16 Aug 2013 15:30:59 +0200
43fe83
Subject: [PATCH] virbitmaptest: Fix function header formatting
43fe83
43fe83
https://bugzilla.redhat.com/show_bug.cgi?id=997906
43fe83
43fe83
(cherry picked from commit 536d38128e749fa5b149b9e168224280c3ad348c)
43fe83
---
43fe83
 tests/virbitmaptest.c | 26 ++++++++++++++++++--------
43fe83
 1 file changed, 18 insertions(+), 8 deletions(-)
43fe83
43fe83
diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c
43fe83
index 9c7329e..8cfd8b5 100644
43fe83
--- a/tests/virbitmaptest.c
43fe83
+++ b/tests/virbitmaptest.c
43fe83
@@ -1,4 +1,6 @@
43fe83
 /*
43fe83
+ * virbitmaptest.c: Test the bitmap code
43fe83
+ *
43fe83
  * Copyright (C) 2013 Red Hat, Inc.
43fe83
  * Copyright (C) 2012 Fujitsu.
43fe83
  *
43fe83
@@ -24,7 +26,8 @@
43fe83
 
43fe83
 #include "virbitmap.h"
43fe83
 
43fe83
-static int test1(const void *data ATTRIBUTE_UNUSED)
43fe83
+static int
43fe83
+test1(const void *data ATTRIBUTE_UNUSED)
43fe83
 {
43fe83
     virBitmapPtr bitmap;
43fe83
     int size;
43fe83
@@ -78,7 +81,8 @@ testBit(virBitmapPtr bitmap,
43fe83
     return -1;
43fe83
 }
43fe83
 
43fe83
-static int test2(const void *data ATTRIBUTE_UNUSED)
43fe83
+static int
43fe83
+test2(const void *data ATTRIBUTE_UNUSED)
43fe83
 {
43fe83
     const char *bitsString1 = "1-32,50,88-99,1021-1023";
43fe83
     char *bitsString2 = NULL;
43fe83
@@ -140,7 +144,8 @@ error:
43fe83
     return ret;
43fe83
 }
43fe83
 
43fe83
-static int test3(const void *data ATTRIBUTE_UNUSED)
43fe83
+static int
43fe83
+test3(const void *data ATTRIBUTE_UNUSED)
43fe83
 {
43fe83
     virBitmapPtr bitmap = NULL;
43fe83
     int ret = -1;
43fe83
@@ -167,7 +172,8 @@ error:
43fe83
 }
43fe83
 
43fe83
 /* test for virBitmapNextSetBit, virBitmapNextClearBit */
43fe83
-static int test4(const void *data ATTRIBUTE_UNUSED)
43fe83
+static int
43fe83
+test4(const void *data ATTRIBUTE_UNUSED)
43fe83
 {
43fe83
     const char *bitsString = "0, 2-4, 6-10, 12, 14-18, 20, 22, 25";
43fe83
     int size = 40;
43fe83
@@ -261,7 +267,8 @@ error:
43fe83
 }
43fe83
 
43fe83
 /* test for virBitmapNewData/ToData */
43fe83
-static int test5(const void *v ATTRIBUTE_UNUSED)
43fe83
+static int
43fe83
+test5(const void *v ATTRIBUTE_UNUSED)
43fe83
 {
43fe83
     char data[] = {0x01, 0x02, 0x00, 0x00, 0x04};
43fe83
     unsigned char *data2 = NULL;
43fe83
@@ -309,7 +316,8 @@ error:
43fe83
 
43fe83
 
43fe83
 /* test for virBitmapFormat */
43fe83
-static int test6(const void *v ATTRIBUTE_UNUSED)
43fe83
+static int
43fe83
+test6(const void *v ATTRIBUTE_UNUSED)
43fe83
 {
43fe83
     virBitmapPtr bitmap = NULL;
43fe83
     char *str = NULL;
43fe83
@@ -390,7 +398,8 @@ error:
43fe83
     return ret;
43fe83
 }
43fe83
 
43fe83
-static int test7(const void *v ATTRIBUTE_UNUSED)
43fe83
+static int
43fe83
+test7(const void *v ATTRIBUTE_UNUSED)
43fe83
 {
43fe83
     virBitmapPtr bitmap;
43fe83
     size_t i;
43fe83
@@ -429,7 +438,8 @@ error:
43fe83
     return -1;
43fe83
 }
43fe83
 
43fe83
-static int test8(const void *v ATTRIBUTE_UNUSED)
43fe83
+static int
43fe83
+test8(const void *v ATTRIBUTE_UNUSED)
43fe83
 {
43fe83
     virBitmapPtr bitmap = NULL;
43fe83
     char data[108] = {0x00,};
43fe83
-- 
43fe83
1.8.3.2
43fe83