summaryrefslogtreecommitdiffstats
path: root/bin/hostname
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-05-13 07:47:35 +0000
committercharnier <charnier@FreeBSD.org>1998-05-13 07:47:35 +0000
commitde95e3d75f2db3d431c3c3f16ce2af32be4cc69d (patch)
treecacdc41f65099eb70e164fc73efe1904768fcb58 /bin/hostname
parentf18d7e3d59e6e3c77c1a4c2ba97945d24f5454f9 (diff)
downloadFreeBSD-src-de95e3d75f2db3d431c3c3f16ce2af32be4cc69d.zip
FreeBSD-src-de95e3d75f2db3d431c3c3f16ce2af32be4cc69d.tar.gz
Correct use of .Nm. Add rcsid.
Diffstat (limited to 'bin/hostname')
-rw-r--r--bin/hostname/hostname.18
-rw-r--r--bin/hostname/hostname.c8
2 files changed, 9 insertions, 7 deletions
diff --git a/bin/hostname/hostname.1 b/bin/hostname/hostname.1
index 2abb457..94aa27c 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: hostname.1,v 1.6 1997/02/22 14:03:41 peter Exp $
+.\" $Id: hostname.1,v 1.7 1997/06/03 06:21:45 charnier Exp $
.\"
.Dd April 28, 1995
.Dt HOSTNAME 1
@@ -43,7 +43,7 @@
.Op Fl s
.Op Ar name-of-host
.Sh DESCRIPTION
-.Nm
+.Nm Hostname
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
@@ -54,13 +54,13 @@ time.
Options:
.Bl -tag -width flag
.It Fl s
-Trims off any domain information from the printed
+Trim off any domain information from the printed
name.
.El
.Sh SEE ALSO
.Xr gethostname 3
.Sh HISTORY
The
-.Nm hostname
+.Nm
command appeared in
.Bx 4.2 .
diff --git a/bin/hostname/hostname.c b/bin/hostname/hostname.c
index 98cea7d..d8a81f4 100644
--- a/bin/hostname/hostname.c
+++ b/bin/hostname/hostname.c
@@ -29,8 +29,6 @@
* 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: hostname.c,v 1.7 1997/06/03 06:21:45 charnier Exp $
*/
#ifndef lint
@@ -40,7 +38,11 @@ static char const copyright[] =
#endif /* not lint */
#ifndef lint
-static char const sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
+#if 0
+static char sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/param.h>
OpenPOWER on IntegriCloud