$OpenBSD: patch-src_print_volume_c,v 1.4 2012/10/04 08:41:01 jasper Exp $

From 7dcc961fa2d755ed47b29de778a2d2baf8dac7ba Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <michael@stapelberg.de>
Date: Wed, 03 Oct 2012 13:12:49 +0000
Subject: Bugfix: Move the pbval definition outside the ifdef

--- src/print_volume.c.orig	Wed Oct  3 13:44:44 2012
+++ src/print_volume.c	Thu Oct  4 08:30:22 2012
@@ -51,6 +51,7 @@ static void free_hdl(struct mixer_hdl *hdl) {
 
 void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char *device, const char *mixer, int mixer_idx) {
         char *outwalk = buffer;
+	int pbval = 1;
 
         /* Printing volume only works with ALSA at the moment */
         if (output_format == O_I3BAR) {
@@ -173,6 +174,7 @@ void print_volume(yajl_gen json_gen, char *buffer, con
 			walk += strlen("volume");
 		}
 	}
+
 #endif
 #if defined(__FreeBSD__) || defined(__OpenBSD__)
         char mixerpath[] = "/dev/mixer";
