diff options
author | Igor Sobrado <sobrado@cvs.openbsd.org> | 2007-09-27 21:55:55 +0000 |
---|---|---|
committer | Igor Sobrado <sobrado@cvs.openbsd.org> | 2007-09-27 21:55:55 +0000 |
commit | 89f8c27268c8ff730e1d013603d743a768e2b7ea (patch) | |
tree | 9151cd5ed2d668df8256acbd323a763e65738ee7 /usr.bin/radioctl/radioctl.c | |
parent | e2068541246f750fc8585db75a7d12475ff5193a (diff) |
style(9) fixes, optional flags without arguments come first;
while here, some spacing fixes
ok deanna@, jakemsr@
Diffstat (limited to 'usr.bin/radioctl/radioctl.c')
-rw-r--r-- | usr.bin/radioctl/radioctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/radioctl/radioctl.c b/usr.bin/radioctl/radioctl.c index 41f6e94af34..e611e4ecf85 100644 --- a/usr.bin/radioctl/radioctl.c +++ b/usr.bin/radioctl/radioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radioctl.c,v 1.13 2006/02/05 23:52:58 jakemsr Exp $ */ +/* $OpenBSD: radioctl.c,v 1.14 2007/09/27 21:55:54 sobrado Exp $ */ /* $RuOBSD: radioctl.c,v 1.4 2001/10/20 18:09:10 pva Exp $ */ /* @@ -192,11 +192,11 @@ main(int argc, char **argv) print_vars(silent, show_choices); else if (argc > 0 && !show_vars) { if (mode == O_RDWR) { - for(; argc--; argv++) + for (; argc--; argv++) if (parse_opt(*argv, &opt)) do_ioctls(rd, &opt, silent); } else { - for(; argc--; argv++) + for (; argc--; argv++) if (parse_opt(*argv, &opt)) { show_verbose(varname[opt.option], silent); @@ -217,9 +217,9 @@ void usage(void) { fprintf(stderr, - "usage: %s [-f file] [-nv] variable ...\n" - " %s [-f file] [-n] variable=value ...\n" - " %s [-f file] [-nv] -a\n", + "usage: %s [-nv] [-f file] -a\n" + " %s [-nv] [-f file] name\n" + " %s [-n] [-f file] name=value\n", __progname, __progname, __progname); exit(1); } |