[Ocfs2-users] [PATCH 03/10] Fix function prototypes
zren at suse.com
zren at suse.com
Wed Sep 9 23:54:43 PDT 2015
From: Goldwyn Rodrigues <rgoldwyn at suse.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn at suse.com>
Reviewed-by: Eric Ren <zren at suse.com>
---
programs/quota_tests/quota_multi_tests.c | 9 +++++----
programs/xattr_tests/xattr-test.c | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/programs/quota_tests/quota_multi_tests.c b/programs/quota_tests/quota_multi_tests.c
index fa31735..350d3cb 100755
--- a/programs/quota_tests/quota_multi_tests.c
+++ b/programs/quota_tests/quota_multi_tests.c
@@ -185,6 +185,7 @@ static int name2id(int type, char *name)
return user2uid(name);
if (type & GROUP)
return group2gid(name);
+ return -1;
}
static void MPI_Barrier_Sync(void)
@@ -1089,7 +1090,7 @@ static void group_inodes_limit_test(long isoftlimit, long bsoftlimit,
add_rm_user_group(GROUPDEL_BIN, REMOVE, GROUP, groupname, NULL);
}
-static int quota_corrupt_test(long isoftlimit, long bsoftlimit, int user_postfix)
+static void quota_corrupt_test(long isoftlimit, long bsoftlimit, int user_postfix)
{
int ret, fd;
long i, j;
@@ -1155,7 +1156,7 @@ static int quota_corrupt_test(long isoftlimit, long bsoftlimit, int user_postfix
add_rm_user_group(USERDEL_BIN, REMOVE, USER, username, NULL);
}
-static int concurrent_rw_test(long isoftlimit, long bsoftlimit,
+static void concurrent_rw_test(long isoftlimit, long bsoftlimit,
long user_postfix)
{
int ret, fd, o_uid, j;
@@ -1250,7 +1251,7 @@ static int concurrent_rw_test(long isoftlimit, long bsoftlimit,
}
}
-static int run_tests(void)
+static void run_tests(void)
{
int ret;
int i;
@@ -1346,7 +1347,7 @@ static int run_tests(void)
}
-static int setup(int argc, char *argv[])
+static void setup(int argc, char *argv[])
{
unsigned long i;
int ret;
diff --git a/programs/xattr_tests/xattr-test.c b/programs/xattr_tests/xattr-test.c
index 3b5af28..2e58ee2 100755
--- a/programs/xattr_tests/xattr-test.c
+++ b/programs/xattr_tests/xattr-test.c
@@ -355,7 +355,7 @@ static void atexit_hook(void)
free(child_pid_list);
}
-static int one_round_run(enum FILE_TYPE ft, int round_no)
+static void one_round_run(enum FILE_TYPE ft, int round_no)
{
int fd, ret, status;
DIR *dp;
--
2.1.4
More information about the Ocfs2-users
mailing list