summaryrefslogtreecommitdiff
path: root/test/stat
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-29 02:56:45 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-29 02:56:45 +0000
commit92a56f367e6635bebf4e519a49943c15d2981d85 (patch)
tree8d0cc34ab7791579c5e7979bc09b5ede8b1bc7be /test/stat
parent55aaeb574609ff7fb7ac93ce4ffe01be0a56f5b7 (diff)
fixup prototype warnings
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 */