summaryrefslogtreecommitdiff
path: root/sutils/reboot.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-11-17 01:29:18 +0000
committerRoland McGrath <roland@gnu.org>1994-11-17 01:29:18 +0000
commita72530d52c9307a5c7c3063ed736ab8e2983fcfc (patch)
treee94755842b0a2c4b444c3d8d879ac3766cf7ce97 /sutils/reboot.c
parent48ab62131d21c50e49dcae03fd1fefac234ade47 (diff)
Include unistd.h, stdio.h, not hurd/anything.
(main): If reboot returns, give error message and return 1.
Diffstat (limited to 'sutils/reboot.c')
-rw-r--r--sutils/reboot.c9
1 files changed, 6 insertions, 3 deletions
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;
}