From 3dd1989ac0c0b699adcfe5c1c0efa2b229fd1e86 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 7 Jun 2021 13:26:01 +0100 Subject: [libc] Match standard prototype for putchar() Reported-by: Bernhard M. Wiedemann Signed-off-by: Michael Brown --- src/core/console.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/console.c') diff --git a/src/core/console.c b/src/core/console.c index 7fd00036f..2b90809bf 100644 --- a/src/core/console.c +++ b/src/core/console.c @@ -20,11 +20,12 @@ unsigned int console_height = CONSOLE_DEFAULT_HEIGHT; * Write a single character to each console device * * @v character Character to be written + * @ret character Character written * * The character is written out to all enabled console devices, using * each device's console_driver::putchar() method. */ -void putchar ( int character ) { +int putchar ( int character ) { struct console_driver *console; /* Automatic LF -> CR,LF translation */ @@ -37,6 +38,8 @@ void putchar ( int character ) { console->putchar ) console->putchar ( character ); } + + return character; } /** -- cgit v1.2.3-55-g7522