From 58735055c87f9a5feacad8e07c97dabb2f15b476 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 13 Aug 2012 21:48:33 -0400 Subject: cut back on number of fputs calls --- pulsemix.c | 60 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/pulsemix.c b/pulsemix.c index accfdca..102f072 100644 --- a/pulsemix.c +++ b/pulsemix.c @@ -612,36 +612,36 @@ static void pulse_deinit(struct pulseaudio_t *pulse) static void __attribute__((__noreturn__)) usage(FILE *out) { fprintf(out, "usage: %s [options] ...\n", program_invocation_short_name); - fputs("\nOptions:\n", out); - fputs(" -h, --help display this help and exit\n", out); - - fputs("\n -d, --device set device mode (default)\n", out); - fputs(" -a, --app set application mode\n", out); - - fputs("\n -o, --sink= control a sink other than the default\n", out); - fputs(" -i, --source= control a source\n", out); - - fputs("\nCommon Commands:\n", out); - fputs(" list list available devices\n", out); - fputs(" get-volume get volume for device\n", out); - fputs(" set-volume VALUE set volume for device\n", out); - fputs(" get-balance get balance for device\n", out); - fputs(" set-balance VALUE set balance for device\n", out); - fputs(" adj-balance VALUE increase or decrease balance for device\n", out); - fputs(" increase VALUE increase volume\n", out); - fputs(" decrease VALUE decrease volume\n", out); - fputs(" mute mute device\n", out); - fputs(" unmute unmute device\n", out); - fputs(" toggle toggle mute\n", out); - fputs(" is-muted check if muted\n", out); - - fputs("\nDevice Commands:\n", out); - fputs(" defaults list default devices\n", out); - fputs(" set-default DEVICE_ID set default device by ID\n", out); - - fputs("\nApplication Commands:\n", out); - fputs(" move APP_ID DEVICE_ID move application stream by ID to device ID\n", out); - fputs(" kill APP_ID kill an application stream by ID\n", out); + fputs("\nOptions:\n" + " -h, --help display this help and exit\n" + + "\n -d, --device set device mode (default)\n" + " -a, --app set application mode\n" + + "\n -o, --sink= control a sink other than the default\n" + " -i, --source= control a source\n", out); + + fputs("\nCommon Commands:\n" + " list list available devices\n" + " get-volume get volume for device\n" + " set-volume VALUE set volume for device\n" + " get-balance get balance for device\n" + " set-balance VALUE set balance for device\n" + " adj-balance VALUE increase or decrease balance for device\n" + " increase VALUE increase volume\n", out); + fputs(" decrease VALUE decrease volume\n" + " mute mute device\n" + " unmute unmute device\n" + " toggle toggle mute\n" + " is-muted check if muted\n", out); + + fputs("\nDevice Commands:\n" + " defaults list default devices\n" + " set-default DEVICE_ID set default device by ID\n" + + "\nApplication Commands:\n" + " move APP_ID DEVICE_ID move application stream by ID to device ID\n" + " kill APP_ID kill an application stream by ID\n", out); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } -- cgit v1.2.3