From be4ae4c8fa78a60c8d5ad177c8476e798e3787a8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 10 Jun 2003 16:41:30 +0000 Subject: boring cleanups --- sbin/savecore/savecore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sbin/savecore') diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index ff371ee4343..7785ee8f595 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: savecore.c,v 1.34 2003/06/02 20:06:17 millert Exp $ */ +/* $OpenBSD: savecore.c,v 1.35 2003/06/10 16:41:29 deraadt Exp $ */ /* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$OpenBSD: savecore.c,v 1.34 2003/06/02 20:06:17 millert Exp $"; +static char rcsid[] = "$OpenBSD: savecore.c,v 1.35 2003/06/10 16:41:29 deraadt Exp $"; #endif #endif /* not lint */ @@ -613,7 +613,7 @@ check_space(void) syslog(LOG_ERR, "%s: %m", dirn); exit(1); } - spacefree = ((off_t)fsbuf.f_bavail * fsbuf.f_bsize) / 1024; + spacefree = ((off_t)fsbuf.f_bavail * fsbuf.f_bsize) / 1024; (void)snprintf(path, sizeof(path), "%s/minfree", dirn); if ((fp = fopen(path, "r")) == NULL) @@ -627,7 +627,7 @@ check_space(void) } needed = (dumpsize + kernelsize) / 1024; - if (minfree > 0 && spacefree - needed < minfree) { + if (minfree > 0 && spacefree - needed < minfree) { syslog(LOG_WARNING, "no dump, not enough free space on device"); return (0); -- cgit v1.2.3