summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ftruncate.c2
-rw-r--r--tests/getgroups.c2
-rw-r--r--tests/readlink.c2
-rw-r--r--tests/shared_mmap.c2
-rw-r--r--tests/trivial.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/ftruncate.c b/tests/ftruncate.c
index d3e5de3afbe..46123762ef7 100644
--- a/tests/ftruncate.c
+++ b/tests/ftruncate.c
@@ -11,7 +11,7 @@
#define DATA "conftest.trunc"
#define LEN 7663
-main()
+int main(void)
{
int *buf;
int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC,0666);
diff --git a/tests/getgroups.c b/tests/getgroups.c
index 343fd5a184f..ab5648030a8 100644
--- a/tests/getgroups.c
+++ b/tests/getgroups.c
@@ -16,7 +16,7 @@
#include <unistd.h>
#include <grp.h>
-main()
+int main(void)
{
int i;
int *igroups;
diff --git a/tests/readlink.c b/tests/readlink.c
index 3784288ba01..65311c2ff79 100644
--- a/tests/readlink.c
+++ b/tests/readlink.c
@@ -11,7 +11,7 @@
#define DATA "readlink.test"
#define FNAME "rdlnk.file"
-main()
+int main(void)
{
char buf[7];
int ret;
diff --git a/tests/shared_mmap.c b/tests/shared_mmap.c
index 40d462302ef..5c32a66c299 100644
--- a/tests/shared_mmap.c
+++ b/tests/shared_mmap.c
@@ -15,7 +15,7 @@
#define MAP_FILE 0
#endif
-main()
+int main(void)
{
int *buf;
int i;
diff --git a/tests/trivial.c b/tests/trivial.c
index f7e96d8109c..a137c8c9727 100644
--- a/tests/trivial.c
+++ b/tests/trivial.c
@@ -1,7 +1,7 @@
void exit(int);
-main()
+int main(void)
{
exit(0);
}