File fix_no-return-in-nonvoid-function.patch of Package ocfs2
diff -Nur ocfs2-test-1.0.2.bak/programs/quota_tests/quota_multi_tests.c ocfs2-test-1.0.2/programs/quota_tests/quota_multi_tests.c --- ocfs2-test-1.0.2.bak/programs/quota_tests/quota_multi_tests.c 2009-12-11 15:55:54.000000000 +0800 +++ ocfs2-test-1.0.2/programs/quota_tests/quota_multi_tests.c 2009-12-11 16:30:10.000000000 +0800 @@ -185,6 +185,7 @@ return user2uid(name); if (type & GROUP) return group2gid(name); +return 0; } static void MPI_Barrier_Sync(void) @@ -1153,6 +1154,7 @@ } add_rm_user_group(USERDEL_BIN, REMOVE, USER, username, NULL); +return 0; } static int concurrent_rw_test(long isoftlimit, long bsoftlimit, @@ -1248,6 +1250,7 @@ add_rm_user_group(USERDEL_BIN, REMOVE, USER, username, NULL); } +return 0; } static int run_tests(void) @@ -1344,6 +1347,7 @@ quota_corrupt_test(100, 1024 * 1024, 1); testno++; +return 0; } static int setup(int argc, char *argv[]) @@ -1398,6 +1402,7 @@ MPI_Barrier_Sync(); quota_on_off(QUOTAON_BIN, 1, QUOTAUSER|QUOTAGROUP, mountpoint); +return 0; } static int teardown(void)