diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-10-18 04:04:34 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-10-18 04:04:34 +0000 |
commit | 11fdb8a4c79752157a8263fbcf583916d5ec0347 (patch) | |
tree | a59376401e4f839f9cbd8538bd7caa2d0dd3658f /reboot.c | |
parent | 1bf25f030777a83ed498914ad65ba3d44b8b3fdc (diff) | |
download | busybox-w32-11fdb8a4c79752157a8263fbcf583916d5ec0347.tar.gz busybox-w32-11fdb8a4c79752157a8263fbcf583916d5ec0347.tar.bz2 busybox-w32-11fdb8a4c79752157a8263fbcf583916d5ec0347.zip |
Fix a nasty bug with variable name shadowing
Diffstat (limited to '')
-rw-r--r-- | reboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ extern int reboot_main(int argc, char **argv) | |||
30 | /* don't assume init's pid == 1 */ | 30 | /* don't assume init's pid == 1 */ |
31 | pid_t *pid = find_pid_by_name("init"); | 31 | pid_t *pid = find_pid_by_name("init"); |
32 | if (!pid || *pid<=0) { | 32 | if (!pid || *pid<=0) { |
33 | pid_t *pid = find_pid_by_name("linuxrc"); | 33 | pid = find_pid_by_name("linuxrc"); |
34 | if (!pid || *pid<=0) | 34 | if (!pid || *pid<=0) |
35 | error_msg_and_die("no process killed"); | 35 | error_msg_and_die("no process killed"); |
36 | } | 36 | } |