summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2020-06-17 19:36:17 +0100
committerfalkTX <falktx@falktx.com>2020-06-17 19:36:36 +0100
commitea311b36d7501bfe4c41fd65e7d89d863e39266d (patch)
treefaa7e2eac5aa2e55e0a0849a9dacd134be4dc150
parent70420f49919a6abddaf0f44b6d6474c09a674075 (diff)
downloadjack2-ea311b36d7501bfe4c41fd65e7d89d863e39266d.tar.gz
property.c: Fix whitespace
Signed-off-by: falkTX <falktx@falktx.com>
-rw-r--r--example-clients/property.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/example-clients/property.c b/example-clients/property.c
index 8302c4f1..4d5e2a22 100644
--- a/example-clients/property.c
+++ b/example-clients/property.c
@@ -17,20 +17,20 @@ static char* subject = NULL;
static void
show_usage (void)
{
- fprintf (stderr, "\nUsage: jack_property [options] UUID [ key [ value [ type ] ] ]\n");
- fprintf (stderr, "Set/Display JACK properties (metadata).\n\n");
- fprintf (stderr, "Set options:\n");
- fprintf (stderr, " -s, --set Set property \"key\" to \"value\" for \"UUID\" with optional MIME type \"type\"\n");
- fprintf (stderr, " -d, --delete Remove/delete property \"key\" for \"UUID\"\n");
- fprintf (stderr, " -d, --delete UUID Remove/delete all properties for \"UUID\"\n");
- fprintf (stderr, " -D, --delete-all Remove/delete all properties\n");
+ fprintf (stderr, "\nUsage: jack_property [options] UUID [ key [ value [ type ] ] ]\n");
+ fprintf (stderr, "Set/Display JACK properties (metadata).\n\n");
+ fprintf (stderr, "Set options:\n");
+ fprintf (stderr, " -s, --set Set property \"key\" to \"value\" for \"UUID\" with optional MIME type \"type\"\n");
+ fprintf (stderr, " -d, --delete Remove/delete property \"key\" for \"UUID\"\n");
+ fprintf (stderr, " -d, --delete UUID Remove/delete all properties for \"UUID\"\n");
+ fprintf (stderr, " -D, --delete-all Remove/delete all properties\n");
fprintf (stderr, " --client Interpret UUID as a client name, not a UUID\n");
fprintf (stderr, " --port \tInterpret UUID as a port name, not a UUID\n");
- fprintf (stderr, "\nDisplay options:\n");
- fprintf (stderr, " -l Show all properties\n");
- fprintf (stderr, " -l, --list UUID \tShow value for all properties of UUID\n");
- fprintf (stderr, " -l, --list UUID key Show value for key of UUID\n");
- fprintf (stderr, "\nFor more information see https://jackaudio.org/\n");
+ fprintf (stderr, "\nDisplay options:\n");
+ fprintf (stderr, " -l Show all properties\n");
+ fprintf (stderr, " -l, --list UUID \tShow value for all properties of UUID\n");
+ fprintf (stderr, " -l, --list UUID key Show value for key of UUID\n");
+ fprintf (stderr, "\nFor more information see https://jackaudio.org/\n");
}
static int
@@ -82,7 +82,7 @@ get_subject (jack_client_t* client, char* argv[], int* optind)
int main (int argc, char* argv[])
{
jack_client_t* client = NULL;
- jack_options_t options = JackNoStartServer;
+ jack_options_t options = JackNoStartServer;
char* key = NULL;
char* value = NULL;
char* type = NULL;
@@ -90,32 +90,32 @@ int main (int argc, char* argv[])
int delete = 0;
int delete_all = 0;
int c;
- int option_index;
- extern int optind;
- struct option long_options[] = {
- { "set", 0, 0, 's' },
- { "delete", 0, 0, 'd' },
- { "delete-all", 0, 0, 'D' },
- { "list", 0, 0, 'l' },
- { "client", 0, 0, 'c' },
- { "port", 0, 0, 'p' },
- { 0, 0, 0, 0 }
- };
+ int option_index;
+ extern int optind;
+ struct option long_options[] = {
+ { "set", 0, 0, 's' },
+ { "delete", 0, 0, 'd' },
+ { "delete-all", 0, 0, 'D' },
+ { "list", 0, 0, 'l' },
+ { "client", 0, 0, 'c' },
+ { "port", 0, 0, 'p' },
+ { 0, 0, 0, 0 }
+ };
if (argc < 2) {
show_usage ();
exit (1);
}
- while ((c = getopt_long (argc, argv, "sdDlaApc", long_options, &option_index)) >= 0) {
- switch (c) {
- case 's':
+ while ((c = getopt_long (argc, argv, "sdDlaApc", long_options, &option_index)) >= 0) {
+ switch (c) {
+ case 's':
if (argc < 5) {
show_usage ();
exit (1);
}
- set = 1;
- break;
+ set = 1;
+ break;
case 'd':
if (argc < 3) {
show_usage ();