Compile error fix for volume.app 1.1a
Quick note. I was recently reinstalling my laptop and found that my favourite way to control sound volume, volume.app 1.1a, no longer compiles:
mixer-oss.c: In function 'get_mixer_state':
mixer-oss.c:105: error: subscripted value is neither array nor pointer
There have been no changes to the program in six years, so I assume it’s because GCC’s interpretation of the standards has become stricter in the time since.
To my disappointment, Google found hardly any hits for the error message, much less a solution to the problem. I investigated for myself; turns out it’s a mere triviality. So I threw together a quick corrective patch to put up here, so the next person to run into the problem will hopefully end up here via Google. Share and enjoy.