summaryrefslogtreecommitdiffstats
path: root/usr.bin/modstat
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-07-28 07:01:02 +0000
committercharnier <charnier@FreeBSD.org>1997-07-28 07:01:02 +0000
commitd22bd4cd5ef12575b5db2ed91ad9b34848d90066 (patch)
treefb9e24722a3371539703f84b33d50a299229baf2 /usr.bin/modstat
parent97cf88454822faab01fb34a95617f90bf2ccfd10 (diff)
downloadFreeBSD-src-d22bd4cd5ef12575b5db2ed91ad9b34848d90066.zip
FreeBSD-src-d22bd4cd5ef12575b5db2ed91ad9b34848d90066.tar.gz
Cosmetic in usage string.
Diffstat (limited to 'usr.bin/modstat')
-rw-r--r--usr.bin/modstat/modstat.84
-rw-r--r--usr.bin/modstat/modstat.c24
2 files changed, 14 insertions, 14 deletions
diff --git a/usr.bin/modstat/modstat.8 b/usr.bin/modstat/modstat.8
index 359a856..e8f9638 100644
--- a/usr.bin/modstat/modstat.8
+++ b/usr.bin/modstat/modstat.8
@@ -23,7 +23,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id$
+.\" $Id: modstat.8,v 1.5 1997/02/22 19:56:13 peter Exp $
.\"
.Dd June 7, 1993
.Dt MODSTAT 8
@@ -32,7 +32,7 @@
.Nm modstat
.Nd display status of loaded kernel modules
.Sh SYNOPSIS
-.Nm modstat
+.Nm
.Op Fl i Ar id
.Op Fl n Ar name
.Sh DESCRIPTION
diff --git a/usr.bin/modstat/modstat.c b/usr.bin/modstat/modstat.c
index a11f4d5..14eb784 100644
--- a/usr.bin/modstat/modstat.c
+++ b/usr.bin/modstat/modstat.c
@@ -28,31 +28,33 @@
* 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
* SUCH DAMAGE.
- *
- * $Id: modstat.c,v 1.7 1997/03/11 14:41:52 peter Exp $
*/
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
+#include <a.out.h>
+#include <err.h>
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
-#include <err.h>
#include <string.h>
-#include <a.out.h>
+#include <unistd.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/conf.h>
#include <sys/mount.h>
#include <sys/lkm.h>
#include <sys/file.h>
-#include <sys/errno.h>
#include "pathnames.h"
-void
+static void
usage()
{
- fprintf(stderr, "usage:\n");
- fprintf(stderr, "modstat [-i <module id>] [-n <module name>]\n");
+ fprintf(stderr, "usage: modstat [-i <module id>] [-n <module name>]\n");
exit(1);
}
@@ -116,7 +118,6 @@ int devfd;
void
cleanup()
{
-
close(devfd);
}
@@ -138,9 +139,8 @@ main(argc, argv)
modname = optarg;
break; /* name */
case '?':
- usage();
default:
- printf("default!\n");
+ usage();
break;
}
}
OpenPOWER on IntegriCloud