[Devel] [PATCH 02/10] cr_tests: fileio: Fix do_child(i) call

Matt Helsley matthltc at us.ibm.com
Mon Mar 15 23:48:37 PDT 2010


do_child() does not have an i parameter yet main calls do_child(i).
Clearly it's unused so just remove it.

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>

diff --git a/fileio/fsetown1.c b/fileio/fsetown1.c
index a30e870..9d55e59 100644
--- a/fileio/fsetown1.c
+++ b/fileio/fsetown1.c
@@ -120,7 +120,7 @@ void test_owner(int fd, int exp_owner)
 	return;
 }
 
-void do_child()
+void do_child(void)
 {
 	int rc;
 	char buf[16];
@@ -226,7 +226,7 @@ int main(int argc, char *argv[])
 	 */
 	pid = fork();
 	if (pid == 0)
-		do_child(i);
+		do_child();
 
 	if (pid < 0) {
 		fprintf(logfp, "%d: fork() failed, error %s\n", getpid(),
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list