diff options
author | charnier <charnier@FreeBSD.org> | 1997-06-03 06:21:45 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-06-03 06:21:45 +0000 |
commit | ce6e94241db0ee93c72ca4fdece0a49c5ba92edf (patch) | |
tree | e7fee80c3757e0f1c0337281fc4f5e674e46a371 /bin/hostname/hostname.c | |
parent | 0d7619c59e799013d5903aa6ec5dd00b6b4b78af (diff) | |
download | FreeBSD-src-ce6e94241db0ee93c72ca4fdece0a49c5ba92edf.zip FreeBSD-src-ce6e94241db0ee93c72ca4fdece0a49c5ba92edf.tar.gz |
/etc/netstart -> /etc/rc.network
Use __progname in usage string. Change usage string to match the man page.
Diffstat (limited to 'bin/hostname/hostname.c')
-rw-r--r-- | bin/hostname/hostname.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/hostname/hostname.c b/bin/hostname/hostname.c index 15aee00..48ad16d 100644 --- a/bin/hostname/hostname.c +++ b/bin/hostname/hostname.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: hostname.c,v 1.5 1997/02/22 14:03:42 peter Exp $ + * $Id: hostname.c,v 1.6 1997/03/28 15:24:20 imp Exp $ */ #ifndef lint @@ -51,6 +51,8 @@ static char const sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93"; #include <string.h> #include <unistd.h> +extern char *__progname; + void usage __P((void)); int @@ -94,6 +96,6 @@ void usage() { - (void)fprintf(stderr, "usage: hostname [-s] [hostname]\n"); + (void)fprintf(stderr, "usage: %s [-s] [name-of-host]\n", __progname); exit(1); } |