summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/radioctl/radioctl.16
-rw-r--r--usr.bin/radioctl/radioctl.c8
2 files changed, 8 insertions, 6 deletions
diff --git a/usr.bin/radioctl/radioctl.1 b/usr.bin/radioctl/radioctl.1
index 306b3a6c40f..8ce09ca8737 100644
--- a/usr.bin/radioctl/radioctl.1
+++ b/usr.bin/radioctl/radioctl.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: radioctl.1,v 1.13 2007/09/27 21:55:54 sobrado Exp $
+.\" $OpenBSD: radioctl.1,v 1.14 2008/10/16 02:21:26 jakemsr Exp $
.\"
.\" Copyright (c) 2001 Vladimir Popov
.\" All rights reserved.
@@ -23,7 +23,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 27 2007 $
+.Dd $Mdocdate: October 16 2008 $
.Dt RADIOCTL 1
.Os
.Sh NAME
@@ -60,6 +60,8 @@ The options are as follows:
.Bl -tag -width Ds
.It Fl a
Print all device variables and their current values.
+This is the default, if no parameters are given to
+.Nm .
.It Fl f Ar file
Specify an alternative radio tuner device.
.It Fl n
diff --git a/usr.bin/radioctl/radioctl.c b/usr.bin/radioctl/radioctl.c
index e611e4ecf85..488365d8121 100644
--- a/usr.bin/radioctl/radioctl.c
+++ b/usr.bin/radioctl/radioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radioctl.c,v 1.14 2007/09/27 21:55:54 sobrado Exp $ */
+/* $OpenBSD: radioctl.c,v 1.15 2008/10/16 02:21:26 jakemsr Exp $ */
/* $RuOBSD: radioctl.c,v 1.4 2001/10/20 18:09:10 pva Exp $ */
/*
@@ -138,9 +138,6 @@ main(int argc, char **argv)
int silent = 0;
int mode = O_RDONLY;
- if (argc < 2)
- usage();
-
radiodev = getenv(RADIO_ENV);
if (radiodev == NULL)
radiodev = RADIODEVICE;
@@ -171,6 +168,9 @@ main(int argc, char **argv)
argc -= optind;
argv += optind;
+ if (argc == 0)
+ show_vars = 1;
+
/*
* Scan the options for `name=value` so the
* device can be opened in the proper mode.