mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Add rcsid. Remove unused #includes. Spelling.
This commit is contained in:
parent
89a3081b41
commit
6b5bcce5dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37424
@ -28,20 +28,19 @@
|
|||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
|
||||||
* $Id: modunload.c,v 1.5 1997/03/11 12:24:00 peter Exp $
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef lint
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
|
#endif /* not lint */
|
||||||
|
|
||||||
|
#include <err.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <err.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <a.out.h>
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/conf.h>
|
|
||||||
#include <sys/mount.h>
|
|
||||||
#include <sys/lkm.h>
|
#include <sys/lkm.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
@ -98,7 +97,7 @@ main(argc, argv)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Open the virtual device device driver for exclusive use (needed
|
* Open the virtual device device driver for exclusive use (needed
|
||||||
* to ioctl() to retrive the loaded module(s) status).
|
* to ioctl() to retrieve the loaded module(s) status).
|
||||||
*/
|
*/
|
||||||
if ((devfd = open(_PATH_LKM, O_RDWR, 0)) == -1)
|
if ((devfd = open(_PATH_LKM, O_RDWR, 0)) == -1)
|
||||||
err(2, _PATH_LKM);
|
err(2, _PATH_LKM);
|
||||||
|
Loading…
Reference in New Issue
Block a user