diff options
author | kientzle <kientzle@FreeBSD.org> | 2006-12-08 07:47:08 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2006-12-08 07:47:08 +0000 |
commit | 257e9215d12f998df42e8e780621422d237bad60 (patch) | |
tree | d9ea68930cb6723fe4fed8886b7bd121941f20e1 /bin/hostname/hostname.c | |
parent | 86c1b9785705552d1437963f2fbe999c28c18720 (diff) | |
download | FreeBSD-src-257e9215d12f998df42e8e780621422d237bad60.zip FreeBSD-src-257e9215d12f998df42e8e780621422d237bad60.tar.gz |
Style(9) fixes, thanks to Ruslan.
Diffstat (limited to 'bin/hostname/hostname.c')
-rw-r--r-- | bin/hostname/hostname.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/hostname/hostname.c b/bin/hostname/hostname.c index dd3f7e9..7aaca9c 100644 --- a/bin/hostname/hostname.c +++ b/bin/hostname/hostname.c @@ -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); } |