diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-11-13 02:20:42 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-11-13 02:20:42 +0000 |
commit | 153fe10fe8a57ade4f3419a6582651e706a44661 (patch) | |
tree | a7d7098de6bddad95b78322522894272c806fadc /sutils | |
parent | 46da9a1df83e95ee0b6624925c04f5082e31989d (diff) |
(main): Just use the reboot function.
Diffstat (limited to 'sutils')
-rw-r--r-- | sutils/halt.c | 10 | ||||
-rw-r--r-- | sutils/reboot.c | 10 |
2 files changed, 2 insertions, 18 deletions
diff --git a/sutils/halt.c b/sutils/halt.c index d17f1a94..e490bc09 100644 --- a/sutils/halt.c +++ b/sutils/halt.c @@ -24,15 +24,7 @@ main () { - host_priv_t host_priv; - device_t dev; - process_t proc; - mach_port_t msg; - - get_privileged_ports (&host_priv, &dev); - proc = getproc (); - proc_getmsgport (proc, 1, &msg); - startup_reboot (msg, host_priv, RB_HALT); + reboot (RB_HALT); } diff --git a/sutils/reboot.c b/sutils/reboot.c index b3bcd2ef..2909d102 100644 --- a/sutils/reboot.c +++ b/sutils/reboot.c @@ -25,15 +25,7 @@ main () { - host_priv_t host_priv; - device_t dev; - process_t proc; - mach_port_t msg; - - get_privileged_ports (&host_priv, &dev); - proc = getproc (); - proc_getmsgport (proc, 1, &msg); - startup_reboot (msg, host_priv, 0); + reboot (0); } |