summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/halt.c2
-rw-r--r--init/init.c2
-rw-r--r--init/poweroff.c2
-rw-r--r--init/reboot.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/init/halt.c b/init/halt.c
index c3e2523..e875d04 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -28,7 +28,7 @@ extern int halt_main(int argc, char **argv)
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- return(kill(*(findPidByName("init")), SIGUSR1));
+ return(kill(*(find_pid_by_name("init")), SIGUSR1));
#else
return(kill(1, SIGUSR1));
#endif
diff --git a/init/init.c b/init/init.c
index c444089..e5b1a39 100644
--- a/init/init.c
+++ b/init/init.c
@@ -296,7 +296,7 @@ static int check_free_memory()
unsigned int result, u, s=10;
if (sysinfo(&info) != 0) {
- perrorMsg("Error checking free memory: ");
+ perror_msg("Error checking free memory: ");
return -1;
}
diff --git a/init/poweroff.c b/init/poweroff.c
index 3101a20..007099d 100644
--- a/init/poweroff.c
+++ b/init/poweroff.c
@@ -28,7 +28,7 @@ extern int poweroff_main(int argc, char **argv)
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- return(kill(*(findPidByName("init")), SIGUSR2));
+ return(kill(*(find_pid_by_name("init")), SIGUSR2));
#else
return(kill(1, SIGUSR2));
#endif
diff --git a/init/reboot.c b/init/reboot.c
index 354286d..3e5f238 100644
--- a/init/reboot.c
+++ b/init/reboot.c
@@ -28,7 +28,7 @@ extern int reboot_main(int argc, char **argv)
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- return(kill(*(findPidByName("init")), SIGINT));
+ return(kill(*(find_pid_by_name("init")), SIGINT));
#else
return(kill(1, SIGINT));
#endif