summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2020-02-01 18:07:50 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2020-02-01 18:07:50 +0000
commit2e43e0e92e5f4f4d010a13c58c9fd0764dd80afd (patch)
tree794753354359b1f1a7f1f6f1b0fd9c855eeee16e /usr.bin
parent88b84ae6e0d3b889bee5cfb79e0f00ee62f67979 (diff)
Rename print_names flag to show_names.
Avoids confusion with print_xxx routines; no object change.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/audioctl/audioctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/audioctl/audioctl.c b/usr.bin/audioctl/audioctl.c
index 4aa461f8626..ca056c14175 100644
--- a/usr.bin/audioctl/audioctl.c
+++ b/usr.bin/audioctl/audioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audioctl.c,v 1.39 2020/02/01 18:06:19 ratchov Exp $ */
+/* $OpenBSD: audioctl.c,v 1.40 2020/02/01 18:07:49 ratchov Exp $ */
/*
* Copyright (c) 2016 Alexandre Ratchov <alex@caoua.org>
*
@@ -67,7 +67,7 @@ const char usagestr[] =
" audioctl [-n] [-f file] name ...\n"
" audioctl [-nq] [-f file] name=value ...\n";
-int fd, print_names = 1, quiet = 0;
+int fd, show_names = 1, quiet = 0;
/*
* parse encoding string (examples: s8, u8, s16, s16le, s24be ...)
@@ -232,7 +232,7 @@ audio_main(int argc, char **argv)
f->set = 1;
set = 1;
} else {
- if (print_names)
+ if (show_names)
printf("%s=", f->name);
print_val(f, f->raddr);
printf("\n");
@@ -247,7 +247,7 @@ audio_main(int argc, char **argv)
for (f = fields; f->name != NULL; f++) {
if (!f->set || quiet)
continue;
- if (print_names) {
+ if (show_names) {
printf("%s: ", f->name);
print_val(f, f->raddr);
printf(" -> ");
@@ -272,7 +272,7 @@ main(int argc, char **argv)
case 'a': /* ignored, compat */
break;
case 'n':
- print_names = 0;
+ show_names = 0;
break;
case 'f':
path = optarg;