aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 00:35:41 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 00:35:41 -0700
commit9893721cdf2953fdafd90988899307ec14794f4c (patch)
tree257e88d2751bc57fc6a07eca96011e6fd4eb1379 /init
parent4d1ae8c58dd8a8505a7684fa393c95da04082ef7 (diff)
downloadhistory-9893721cdf2953fdafd90988899307ec14794f4c.tar.gz
sparse: fix pointer/integer confusion
I don't think we're in K&R any more, Toto. If you want a NULL pointer, use NULL. Don't use an integer. Most of the users really didn't seem to know the proper type.
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts_initrd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c
index e65c2e25dd28d0..07e7d31f2d0b09 100644
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
@@ -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, 0))
+ while (pid != sys_wait4(-1, &i, 0, NULL))
yield();
}