diff options
author | Roland McGrath <roland@gnu.org> | 1994-11-17 01:29:18 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-11-17 01:29:18 +0000 |
commit | a72530d52c9307a5c7c3063ed736ab8e2983fcfc (patch) | |
tree | e94755842b0a2c4b444c3d8d879ac3766cf7ce97 /sutils/halt.c | |
parent | 48ab62131d21c50e49dcae03fd1fefac234ade47 (diff) | |
download | hurd-a72530d52c9307a5c7c3063ed736ab8e2983fcfc.tar.gz hurd-a72530d52c9307a5c7c3063ed736ab8e2983fcfc.tar.bz2 hurd-a72530d52c9307a5c7c3063ed736ab8e2983fcfc.zip |
Include unistd.h, stdio.h, not hurd/anything.
(main): If reboot returns, give error message and return 1.
Diffstat (limited to 'sutils/halt.c')
-rw-r--r-- | sutils/halt.c | 14 |
1 files changed, 7 insertions, 7 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; } - - - - |