aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 12:55:41 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 12:55:41 +0100
commit831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9 (patch)
tree18f8f9b88b16b426b6243d4fb006ef2fbd522e84
parentUpdate e-mail (diff)
downloadvtchs-831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9.tar.gz
vtchs-831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9.tar.bz2
vtchs-831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9.tar.xz
m fixesHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--README4
-rw-r--r--config.mk4
-rw-r--r--vtchs.14
-rw-r--r--vtchs.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/README b/README
index 0cf47a9..89265f7 100644
--- a/README
+++ b/README
@@ -21,10 +21,10 @@ RATIONALE
Sometimes you need to be able to know which
console is in the foreground, and stay up to
date on this. In particular, I want to be able
- to record the output on the mintors, and have
+ to record the output on the monitors, and have
it detect VT switches, so it can select the
appropriate method and display; and I want to
- be able to have VT dependent colour adjustments.
+ be able to have VT-dependent colour adjustments.
SEE ALSO
fgconsole(1), chvt(1)
diff --git a/config.mk b/config.mk
index aa81003..bc78e3e 100644
--- a/config.mk
+++ b/config.mk
@@ -1,8 +1,8 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
-CC = cc
+CC = c99
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
-CFLAGS = -std=c99 -Wall -O2
+CFLAGS =
LDFLAGS = -s
diff --git a/vtchs.1 b/vtchs.1
index 65fd571..29d9f01 100644
--- a/vtchs.1
+++ b/vtchs.1
@@ -25,10 +25,10 @@ when this happens.
Sometimes you need to be able to know which
console is in the foreground, and stay up to
date on this. In particular, I want to be able
-to record the output on the mintors, and have
+to record the output on the monitors, and have
it detect VT switches, so it can select the
appropriate method and display; and I want to
-be able to have VT dependent colour adjustments.
+be able to have VT-dependent colour adjustments.
.SH SEE ALSO
.BR fgconsole (1),
.BR chvt (1)
diff --git a/vtchs.c b/vtchs.c
index 9bb3673..ef24050 100644
--- a/vtchs.c
+++ b/vtchs.c
@@ -12,7 +12,7 @@
static char *argv0;
static void
-vt(int op, void *arg, const char *opstr)
+vt(unsigned long int op, void *arg, const char *opstr)
{
if (ioctl(STDIN_FILENO, op, arg) == -1) {
fprintf(stderr, "%s: ioctl <stdin> %s: %s\n", argv0, opstr, strerror(errno));