The result of getopt() is "int" and should be treated as such
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index a8c61c7..99d053a 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -34,7 +34,8 @@
 
 int dmesg_main(int argc, char **argv)
 {
-	char *buf, c;
+	char *buf;
+	int c;
 	int bufsize = 8196;
 	int i;
 	int n;