diff options
Diffstat (limited to 'components/volume.c')
| -rw-r--r-- | components/volume.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/volume.c b/components/volume.c index 5a2bfb7..20171da 100644 --- a/components/volume.c +++ b/components/volume.c @@ -211,11 +211,14 @@ close(afd); return NULL; } + close(afd); + return bprintf("%d", v & 0xff); } } close(afd); + warn("vol_perc: no 'vol' mixer device"); - return bprintf("%d", v & 0xff); + return NULL; } #endif |
