Skip to contentSkip to conversation

init/do_mounts_initrd.c: fix sparse warning

PATCH In review [email protected] 1 participant 2 messages Mar 19, 2005 – Mar 20, 2005 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 6/10 init/do_mounts_initrd.c: fix sparse warning

---

 kj-domen/init/do_mounts_initrd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
init/do_mounts_initrd.c renamed from init/do_mounts_initrd.c~sparse-init_do_mounts_initrd +2 -2
diff -puN init/do_mounts_initrd.c~sparse-init_do_mounts_initrd init/do_mounts_initrd.c
@@ -41,7 +41,7 @@ static int __init do_linuxrc(void * shel
 static void __init handle_initrd(void)
 {
 	int error;
-	int i, pid;
+	int pid;
 
 	real_root_dev = new_encode_dev(ROOT_DEV);
 	create_dev("/dev/root.old", Root_RAM0, NULL);
@@ -58,7 +58,7 @@ static void __init handle_initrd(void)
 
 	pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
 	if (pid > 0) {
-		while (pid != sys_wait4(-1, &i, 0, NULL))
+		while (pid != sys_wait4(-1, NULL, 0, NULL))
 			yield();
 	}
 

_

#1 lore raw

---

 kj-domen/init/do_mounts_initrd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
init/do_mounts_initrd.c renamed from init/do_mounts_initrd.c~sparse-init_do_mounts_initrd +2 -2
diff -puN init/do_mounts_initrd.c~sparse-init_do_mounts_initrd init/do_mounts_initrd.c
@@ -41,7 +41,7 @@ static int __init do_linuxrc(void * shel
 static void __init handle_initrd(void)
 {
 	int error;
-	int i, pid;
+	int pid;
 
 	real_root_dev = new_encode_dev(ROOT_DEV);
 	create_dev("/dev/root.old", Root_RAM0, NULL);
@@ -58,7 +58,7 @@ static void __init handle_initrd(void)
 
 	pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
 	if (pid > 0) {
-		while (pid != sys_wait4(-1, &i, 0, NULL))
+		while (pid != sys_wait4(-1, NULL, 0, NULL))
 			yield();
 	}
 

_