From beb3ef1e7ed01e757299c7b11b505ac19ad44923 Mon Sep 17 00:00:00 2001 From: lukem Date: Mon, 15 Sep 1997 03:46:27 +0000 Subject: [PATCH] * cleanup for WARNS+1 * use .Nm correctly --- sbin/mknod/mknod.8 | 8 ++++---- sbin/mknod/mknod.c | 13 +++++++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/sbin/mknod/mknod.8 b/sbin/mknod/mknod.8 index 18b4dc6a9520..62aa3aec6b48 100644 --- a/sbin/mknod/mknod.8 +++ b/sbin/mknod/mknod.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: mknod.8,v 1.10 1997/06/30 17:17:56 phil Exp $ +.\" $NetBSD: mknod.8,v 1.11 1997/09/15 03:46:27 lukem Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -40,18 +40,18 @@ .Nm mknod .Nd build special file .Sh SYNOPSIS -.Nm mknod +.Nm .Ar name .Op Cm c | Cm b .Ar major minor .Sh DESCRIPTION The -.Nm mknod +.Nm command creates device special files. Normally the shell script .Pa /dev/MAKEDEV is used to create special files for commonly known devices; it executes -.Nm mknod +.Nm with the appropriate arguments and can make all the files required for the device. .Pp diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c index b95de3d8b5d9..b5851bfc75f3 100644 --- a/sbin/mknod/mknod.c +++ b/sbin/mknod/mknod.c @@ -1,4 +1,4 @@ -/* $NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $ */ +/* $NetBSD: mknod.c,v 1.9 1997/09/15 03:46:31 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -36,17 +36,17 @@ * SUCH DAMAGE. */ +#include #ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1989, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; +__COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); #endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)mknod.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $"; +__RCSID("$NetBSD: mknod.c,v 1.9 1997/09/15 03:46:31 lukem Exp $"); #endif #endif /* not lint */ @@ -57,7 +57,8 @@ static char rcsid[] = "$NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $"; #include #include -static void usage(); + int main __P((int, char *[])); +static void usage __P((void)); int main(argc, argv)