9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 88d0d87feac6b240025eb76e656a6305f607a029
parent 6309f67fc9181a2c4b49d2491446686b35ce6162
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date:   Fri, 11 Nov 2022 18:06:48 +0100

conf: Check that value requested is console

We only have configuration for the console at this moment.

Diffstat:
Msrc/os9/arch/arm64/main.c | 3+++
Msrc/os9/hosted/main.c | 3+++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/os9/arch/arm64/main.c b/src/os9/arch/arm64/main.c @@ -22,6 +22,9 @@ getconf(char *name) "echo on\n" "cooked on\n"; + if (strcmp(name, "console") == 0) + return NULL; + return constxt; } diff --git a/src/os9/hosted/main.c b/src/os9/hosted/main.c @@ -60,6 +60,9 @@ getconf(char *name) "addin #t0/raw\n" "addout #t0/raw\n"; + if (strcmp(name, "console") != 0) + return NULL; + return constxt; }