提交 536d3812 编写于 作者: P Peter Krempa

virbitmaptest: Fix function header formatting

上级 47b9127e
/* /*
* virbitmaptest.c: Test the bitmap code
*
* Copyright (C) 2013 Red Hat, Inc. * Copyright (C) 2013 Red Hat, Inc.
* Copyright (C) 2012 Fujitsu. * Copyright (C) 2012 Fujitsu.
* *
...@@ -24,7 +26,8 @@ ...@@ -24,7 +26,8 @@
#include "virbitmap.h" #include "virbitmap.h"
static int test1(const void *data ATTRIBUTE_UNUSED) static int
test1(const void *data ATTRIBUTE_UNUSED)
{ {
virBitmapPtr bitmap; virBitmapPtr bitmap;
int size; int size;
...@@ -78,7 +81,8 @@ testBit(virBitmapPtr bitmap, ...@@ -78,7 +81,8 @@ testBit(virBitmapPtr bitmap,
return -1; return -1;
} }
static int test2(const void *data ATTRIBUTE_UNUSED) static int
test2(const void *data ATTRIBUTE_UNUSED)
{ {
const char *bitsString1 = "1-32,50,88-99,1021-1023"; const char *bitsString1 = "1-32,50,88-99,1021-1023";
char *bitsString2 = NULL; char *bitsString2 = NULL;
...@@ -140,7 +144,8 @@ error: ...@@ -140,7 +144,8 @@ error:
return ret; return ret;
} }
static int test3(const void *data ATTRIBUTE_UNUSED) static int
test3(const void *data ATTRIBUTE_UNUSED)
{ {
virBitmapPtr bitmap = NULL; virBitmapPtr bitmap = NULL;
int ret = -1; int ret = -1;
...@@ -167,7 +172,8 @@ error: ...@@ -167,7 +172,8 @@ error:
} }
/* test for virBitmapNextSetBit, virBitmapNextClearBit */ /* test for virBitmapNextSetBit, virBitmapNextClearBit */
static int test4(const void *data ATTRIBUTE_UNUSED) static int
test4(const void *data ATTRIBUTE_UNUSED)
{ {
const char *bitsString = "0, 2-4, 6-10, 12, 14-18, 20, 22, 25"; const char *bitsString = "0, 2-4, 6-10, 12, 14-18, 20, 22, 25";
int size = 40; int size = 40;
...@@ -261,7 +267,8 @@ error: ...@@ -261,7 +267,8 @@ error:
} }
/* test for virBitmapNewData/ToData */ /* test for virBitmapNewData/ToData */
static int test5(const void *v ATTRIBUTE_UNUSED) static int
test5(const void *v ATTRIBUTE_UNUSED)
{ {
char data[] = {0x01, 0x02, 0x00, 0x00, 0x04}; char data[] = {0x01, 0x02, 0x00, 0x00, 0x04};
unsigned char *data2 = NULL; unsigned char *data2 = NULL;
...@@ -309,7 +316,8 @@ error: ...@@ -309,7 +316,8 @@ error:
/* test for virBitmapFormat */ /* test for virBitmapFormat */
static int test6(const void *v ATTRIBUTE_UNUSED) static int
test6(const void *v ATTRIBUTE_UNUSED)
{ {
virBitmapPtr bitmap = NULL; virBitmapPtr bitmap = NULL;
char *str = NULL; char *str = NULL;
...@@ -390,7 +398,8 @@ error: ...@@ -390,7 +398,8 @@ error:
return ret; return ret;
} }
static int test7(const void *v ATTRIBUTE_UNUSED) static int
test7(const void *v ATTRIBUTE_UNUSED)
{ {
virBitmapPtr bitmap; virBitmapPtr bitmap;
size_t i; size_t i;
...@@ -429,7 +438,8 @@ error: ...@@ -429,7 +438,8 @@ error:
return -1; return -1;
} }
static int test8(const void *v ATTRIBUTE_UNUSED) static int
test8(const void *v ATTRIBUTE_UNUSED)
{ {
virBitmapPtr bitmap = NULL; virBitmapPtr bitmap = NULL;
char data[108] = {0x00,}; char data[108] = {0x00,};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册