summaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
Diffstat (limited to 'sutils')
-rw-r--r--sutils/halt.c14
-rw-r--r--sutils/reboot.c9
2 files changed, 13 insertions, 10 deletions
diff --git a/sutils/halt.c b/sutils/halt.c
index e490bc09..2d9c1a18 100644
--- a/sutils/halt.c
+++ b/sutils/halt.c
@@ -18,15 +18,15 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#include <hurd.h>
+
#include <sys/reboot.h>
-#include <hurd/startup.h>
+#include <unistd.h>
+#include <stdio.h>
-main ()
+int
+main (void)
{
reboot (RB_HALT);
+ perror ("reboot");
+ return 1;
}
-
-
-
-
diff --git a/sutils/reboot.c b/sutils/reboot.c
index 2909d102..7844ba06 100644
--- a/sutils/reboot.c
+++ b/sutils/reboot.c
@@ -19,13 +19,16 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#include <hurd.h>
#include <sys/reboot.h>
-#include <hurd/startup.h>
+#include <unistd.h>
+#include <stdio.h>
-main ()
+int
+main (void)
{
reboot (0);
+ perror ("reboot");
+ return 1;
}