From 8fc722a572b8af5afde4a4515a7ff3784360e471 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Wed, 22 Sep 2021 20:56:34 +0200 Subject: [PATCH] mixer(8): Compile fix for when the "char" type is unsigned. Differential Revision: https://reviews.freebsd.org/D31636 Sponsored by: NVIDIA Networking --- usr.sbin/mixer/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index 3bbb8eebf93f..c32b87fdb7f0 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -63,7 +63,7 @@ main(int argc, char *argv[]) char *p, *bufp, *devstr, *ctlstr, *valstr = NULL; int dunit, i, n, pall = 1; int aflag = 0, dflag = 0, oflag = 0, sflag = 0; - char ch; + int ch; while ((ch = getopt(argc, argv, "ad:f:os")) != -1) { switch (ch) {