ncmixer

ncurses audio mixer for DJ'ing
git clone git://git.2f30.org/ncmixer
Log | Files | Refs | README | LICENSE

commit 9413f4fc2d436144a39293ea7de996fda9a438c4
parent ccc98a70449feecc312fbb3011eb5815fd11567e
Author: sin <sin@2f30.org>
Date:   Tue,  7 Jun 2016 00:04:27 +0100

Make printerr() variadic

Diffstat:
Mncmixer.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ncmixer.c b/ncmixer.c @@ -101,11 +101,14 @@ printwarn(char *fmt, ...) } void -printerr(int ret, char *prefix) +printerr(int ret, char *fmt, ...) { + va_list ap; + endwin(); - fprintf(stderr, "ncmixer: %s: %s\n", prefix, - strerror(errno)); + va_start(ap, fmt); + verr(ret, fmt, ap); + va_end(ap); exit(ret); }