From 927bf1d75bca2da6dee691ec851a5d6cec40125c Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 26 Mar 2002 19:10:17 +0000 Subject: 2002-03-23 James A. Morrison * halt.c (main): Use error, not perror. * reboot.c (main): Likewise. * update.c (main): Use error, not perror and exit. --- sutils/update.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sutils/update.c') diff --git a/sutils/update.c b/sutils/update.c index 0342824f..c1f4e982 100644 --- a/sutils/update.c +++ b/sutils/update.c @@ -1,5 +1,5 @@ /* Periodically call sync. - Copyright (C) 1994 Free Software Foundation, Inc. + Copyright (C) 1994, 2002 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -41,10 +41,7 @@ main (int argc, char **argv) } if (daemon (0, 0)) - { - perror ("daemon"); - exit (1); - } + error (1, errno, "daemon"); for (;;) { -- cgit v1.2.3