summaryrefslogtreecommitdiff
path: root/test/stat
diff options
context:
space:
mode:
Diffstat (limited to 'test/stat')
-rw-r--r--test/stat/memcmp-stat.c4
-rw-r--r--test/stat/stat.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/stat/memcmp-stat.c b/test/stat/memcmp-stat.c
index 3e0143e94..c38e3ff88 100644
--- a/test/stat/memcmp-stat.c
+++ b/test/stat/memcmp-stat.c
@@ -18,7 +18,7 @@
#include <assert.h>
#include <time.h>
-void show_stat(struct stat *st)
+static void show_stat(struct stat *st)
{
printf(
"------------------\n"
@@ -66,7 +66,7 @@ void show_stat(struct stat *st)
);
}
-int main()
+int main(void)
{
int ret;
int fd;
diff --git a/test/stat/stat.c b/test/stat/stat.c
index c9e063f27..4980cdd78 100644
--- a/test/stat/stat.c
+++ b/test/stat/stat.c
@@ -5,7 +5,7 @@
#include <unistd.h>
#include <stdlib.h>
-void print_struct_stat(char *msg, struct stat *s)
+static void print_struct_stat(char *msg, struct stat *s)
{
printf("%s\n", msg);
/* The casts are because glibc thinks it's cool */