diff options
author | charnier <charnier@FreeBSD.org> | 1997-11-24 07:31:31 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-11-24 07:31:31 +0000 |
commit | 402f3974e3ee80dd9d5e9064b4abb9db60222c95 (patch) | |
tree | db509c38b7be543c6dd624fb2e7ca0154fc8d570 /libexec/mknetid/mknetid.c | |
parent | f43c396ac1172920f935abe23dd4cc8bcf8ea7ce (diff) | |
download | FreeBSD-src-402f3974e3ee80dd9d5e9064b4abb9db60222c95.zip FreeBSD-src-402f3974e3ee80dd9d5e9064b4abb9db60222c95.tar.gz |
Cosmetics in usage() and man page.
Diffstat (limited to 'libexec/mknetid/mknetid.c')
-rw-r--r-- | libexec/mknetid/mknetid.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/libexec/mknetid/mknetid.c b/libexec/mknetid/mknetid.c index 36bbfc4..0104beb 100644 --- a/libexec/mknetid/mknetid.c +++ b/libexec/mknetid/mknetid.c @@ -34,8 +34,6 @@ * Written by Bill Paul <wpaul@ctr.columbia.edu> * Center for Telecommunications Research * Columbia University, New York City - * - * $Id: mknetid.c,v 1.6 1997/02/22 14:21:54 peter Exp $ */ #include <sys/types.h> @@ -46,17 +44,19 @@ #include <err.h> #include <grp.h> -#include <pwd.h> #include <netdb.h> +#include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include "hash.h" #ifndef lint -static const char rcsid[] = "$Id: mknetid.c,v 1.6 1997/02/22 14:21:54 peter Exp $"; -#endif +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ #define LINSIZ 1024 #define OPSYS "unix" @@ -85,17 +85,19 @@ struct member_entry *dtable[TABLESIZE]; extern struct group *_getgrent __P(( void )); extern int _setgrent __P(( void )); extern void _endgrent __P(( void )); -void usage(prog) -char *prog; + +static void +usage() { - fprintf (stderr,"usage: %s [-q] [-g group file] [-p passwd file] \ -[-h hosts file]\n\t\t\t[-d netid file] [-d domain]\n",prog); + fprintf (stderr, "%s\n%s\n", + "usage: mknetid [-q] [-g group_file] [-p passwd_file] [-h hosts_file]", + " [-d netid_file] [-d domain]"); exit(1); } -extern char *optarg; extern FILE *_gr_fp; +int main(argc, argv) int argc; char *argv[]; @@ -132,7 +134,7 @@ main(argc, argv) quiet++; break; default: - usage(argv[0]); + usage(); break; } } |