From a72530d52c9307a5c7c3063ed736ab8e2983fcfc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 17 Nov 1994 01:29:18 +0000 Subject: Include unistd.h, stdio.h, not hurd/anything. (main): If reboot returns, give error message and return 1. --- sutils/halt.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sutils/halt.c') 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 + #include -#include +#include +#include -main () +int +main (void) { reboot (RB_HALT); + perror ("reboot"); + return 1; } - - - - -- cgit v1.2.3