Style(9) fixes, thanks to Ruslan.
This commit is contained in:
parent
86c1b97857
commit
257e9215d1
@ -37,8 +37,7 @@
|
||||
.Nd set or print name of current host system
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl f
|
||||
.Op Fl s
|
||||
.Op Fl fs
|
||||
.Op Ar name-of-host
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
|
@ -58,12 +58,14 @@ main(int argc, char *argv[])
|
||||
char *p, hostname[MAXHOSTNAMELEN];
|
||||
|
||||
sflag = 0;
|
||||
while ((ch = getopt(argc, argv, "sf")) != -1)
|
||||
while ((ch = getopt(argc, argv, "fs")) != -1)
|
||||
switch (ch) {
|
||||
case 'f':
|
||||
/* On Linux, "hostname -f" prints FQDN. */
|
||||
/* BSD "hostname" always print FQDN by
|
||||
* default, so we accept but ignore -f. */
|
||||
/*
|
||||
* On Linux, "hostname -f" prints FQDN.
|
||||
* BSD "hostname" always prints FQDN by
|
||||
* default, so we accept but ignore -f.
|
||||
*/
|
||||
break;
|
||||
case 's':
|
||||
sflag = 1;
|
||||
@ -98,6 +100,6 @@ void
|
||||
usage(void)
|
||||
{
|
||||
|
||||
(void)fprintf(stderr, "usage: hostname [-s] [name-of-host]\n");
|
||||
(void)fprintf(stderr, "usage: hostname [-fs] [name-of-host]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user