Date: Thu, 28 Sep 2000 13:09:37 -0700 (PDT) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/savecore savecore.c Message-ID: <200009282009.NAA38027@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2000/09/28 13:09:37 PDT
Modified files:
sbin/savecore savecore.c
Log:
Remove superfluous code:
1) use devname() instead of searching /dev for the dump device
2) use fopen() instead of open() so we don't need to differentiate
between compressing and not compressing when writing the core
file or the kernel (zopen() returns a FILE *, so we just use
fwrite() in both cases)
There should be no functional changes.
Revision Changes Path
1.35 +30 -79 src/sbin/savecore/savecore.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009282009.NAA38027>
