git: 8fc722a572b8 - main - mixer(8): Compile fix for when the "char" type is unsigned.

Hans Petter Selasky hselasky at FreeBSD.org
Wed Sep 22 18:59:48 UTC 2021


The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=8fc722a572b8af5afde4a4515a7ff3784360e471

commit 8fc722a572b8af5afde4a4515a7ff3784360e471
Author:     Hans Petter Selasky <hselasky at FreeBSD.org>
AuthorDate: 2021-09-22 18:56:34 +0000
Commit:     Hans Petter Selasky <hselasky at FreeBSD.org>
CommitDate: 2021-09-22 18:58:47 +0000

    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) {


More information about the dev-commits-src-all mailing list