diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 1997-06-03 06:21:45 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 1997-06-03 06:21:45 +0000 |
commit | ec2427b3355cbf097ac7e4cb1ab49ecb853a955d (patch) | |
tree | 0f97154e95c46d8b4f4aa51ef8ca702469966bac /bin/hostname | |
parent | e2b60e721de36d92826542f65e92a79b43e48b5b (diff) | |
download | src-ec2427b3355cbf097ac7e4cb1ab49ecb853a955d.tar.gz src-ec2427b3355cbf097ac7e4cb1ab49ecb853a955d.zip |
Notes
Diffstat (limited to 'bin/hostname')
-rw-r--r-- | bin/hostname/hostname.1 | 4 | ||||
-rw-r--r-- | bin/hostname/hostname.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/bin/hostname/hostname.1 b/bin/hostname/hostname.1 index a5eaac7333db..2abb45724a76 100644 --- a/bin/hostname/hostname.1 +++ b/bin/hostname/hostname.1 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)hostname.1 8.2 (Berkeley) 4/28/95 -.\" $Id$ +.\" $Id: hostname.1,v 1.6 1997/02/22 14:03:41 peter Exp $ .\" .Dd April 28, 1995 .Dt HOSTNAME 1 @@ -47,7 +47,7 @@ prints the name of the current host. The super-user can set the hostname by supplying an argument; this is usually done in the network initialization script -.Pa /etc/netstart , +.Pa /etc/rc.network , normally run at boot time. .Pp diff --git a/bin/hostname/hostname.c b/bin/hostname/hostname.c index 15aee0072636..48ad16dc87ee 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); } |