diff options
-rw-r--r-- | usr.bin/modstat/modstat.8 | 4 | ||||
-rw-r--r-- | usr.bin/modstat/modstat.c | 24 |
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; } } |