diff options
author | charnier <charnier@FreeBSD.org> | 1997-07-28 07:01:02 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-07-28 07:01:02 +0000 |
commit | d22bd4cd5ef12575b5db2ed91ad9b34848d90066 (patch) | |
tree | fb9e24722a3371539703f84b33d50a299229baf2 /usr.bin/modstat/modstat.c | |
parent | 97cf88454822faab01fb34a95617f90bf2ccfd10 (diff) | |
download | FreeBSD-src-d22bd4cd5ef12575b5db2ed91ad9b34848d90066.zip FreeBSD-src-d22bd4cd5ef12575b5db2ed91ad9b34848d90066.tar.gz |
Cosmetic in usage string.
Diffstat (limited to 'usr.bin/modstat/modstat.c')
-rw-r--r-- | usr.bin/modstat/modstat.c | 24 |
1 files changed, 12 insertions, 12 deletions
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; } } |