From c11b9e918fdf467647fdf38183236745f6d92279 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 18 Dec 2011 14:08:32 +0100 Subject: command: Minor cosmetic in volume_change --- src/command.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/command.c b/src/command.c index b3d9d2b..c3f80fd 100644 --- a/src/command.c +++ b/src/command.c @@ -79,9 +79,9 @@ static void volume_change(struct context *ctx, gboolean volume_increment) { struct vol_ctl *ctl; - pa_operation *o; pa_cvolume volume; - pa_volume_t inc; + const pa_volume_t inc = 2 * PA_VOLUME_NORM / 100; + pa_operation *o; if (!ctx->context_ready) return; @@ -90,9 +90,8 @@ volume_change(struct context *ctx, gboolean volume_increment) if (!ctl) return; - volume = (pa_cvolume) { .channels = ctl->channels }; + volume.channels = ctl->channels; pa_cvolume_set(&volume, volume.channels, ctl->vol); - inc = 2 * PA_VOLUME_NORM / 100; if (volume_increment) if (PA_VOLUME_NORM > ctl->vol && -- cgit