summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
authorKarel Zak2012-07-16 18:38:14 +0200
committerKarel Zak2012-07-16 18:38:14 +0200
commitc5e8db5f46024bc88f1c0c5ed051d73ee56fb276 (patch)
tree02a060e84b06c7a54c6b529c1c4851b7903c15e4 /tests/helpers
parentkill: fix compiler warning [-Wmissing-prototypes] (diff)
downloadkernel-qcow2-util-linux-c5e8db5f46024bc88f1c0c5ed051d73ee56fb276.tar.gz
kernel-qcow2-util-linux-c5e8db5f46024bc88f1c0c5ed051d73ee56fb276.tar.xz
kernel-qcow2-util-linux-c5e8db5f46024bc88f1c0c5ed051d73ee56fb276.zip
test_sysinfo: fix compiler warning [-Wmissing-prototypes]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/test_sysinfo.c29
1 files changed, 10 insertions, 19 deletions
diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c
index bc0eea22d..3983f28ef 100644
--- a/tests/helpers/test_sysinfo.c
+++ b/tests/helpers/test_sysinfo.c
@@ -25,15 +25,13 @@ typedef struct {
int (*fnc)(void);
} mntHlpfnc;
-int
-hlp_wordsize(void)
+static int hlp_wordsize(void)
{
printf("%lu\n", CHAR_BIT * sizeof(void*));
return 0;
}
-int
-hlp_endianness(void)
+static int hlp_endianness(void)
{
#if !defined(WORDS_BIGENDIAN)
printf("LE\n");
@@ -44,43 +42,37 @@ hlp_endianness(void)
}
-int
-hlp_pagesize(void)
+static int hlp_pagesize(void)
{
printf("%d\n", getpagesize());
return 0;
}
-int
-hlp_int_max(void)
+static int hlp_int_max(void)
{
printf("%d\n", INT_MAX);
return 0;
}
-int
-hlp_uint_max(void)
+static int hlp_uint_max(void)
{
printf("%u\n", UINT_MAX);
return 0;
}
-int
-hlp_long_max(void)
+static int hlp_long_max(void)
{
printf("%ld\n", LONG_MAX);
return 0;
}
-int
-hlp_ulong_max(void)
+static int hlp_ulong_max(void)
{
printf("%lu\n", ULONG_MAX);
return 0;
}
-int
-hlp_ulong_max32(void)
+static int hlp_ulong_max32(void)
{
#if __WORDSIZE == 64
printf("%lu\n", ULONG_MAX >> 32);
@@ -90,7 +82,7 @@ hlp_ulong_max32(void)
return 0;
}
-mntHlpfnc hlps[] =
+static mntHlpfnc hlps[] =
{
{ "WORDSIZE", hlp_wordsize },
{ "pagesize", hlp_pagesize },
@@ -103,8 +95,7 @@ mntHlpfnc hlps[] =
{ NULL, NULL }
};
-int
-main(int argc, char **argv)
+int main(int argc, char **argv)
{
int re = 0;
mntHlpfnc *fn;