diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-10 16:41:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-10 16:41:30 +0000 |
commit | be4ae4c8fa78a60c8d5ad177c8476e798e3787a8 (patch) | |
tree | 9147be0ccddd92a0298fb419d2da81bafb8ec191 /sbin/savecore/savecore.c | |
parent | 2dab5eb58473c9874077ac55ecd8e4dc7c8d4354 (diff) |
boring cleanups
Diffstat (limited to 'sbin/savecore/savecore.c')
-rw-r--r-- | sbin/savecore/savecore.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |