diff --git a/usr.bin/modstat/modstat.8 b/usr.bin/modstat/modstat.8 index 359a85613b3b..e8f9638b3323 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 a11f4d57188b..14eb7843994d 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 +#include +#include #include #include -#include -#include #include -#include +#include #include #include #include #include #include #include -#include #include "pathnames.h" -void +static void usage() { - fprintf(stderr, "usage:\n"); - fprintf(stderr, "modstat [-i ] [-n ]\n"); + fprintf(stderr, "usage: modstat [-i ] [-n ]\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; } }