aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-06-07 13:26:01 +0100
committerMichael Brown <mcb30@ipxe.org>2021-06-07 13:26:01 +0100
commit3dd1989ac0c0b699adcfe5c1c0efa2b229fd1e86 (patch)
tree2b9a94ed2be8c9e3a3fa6c2ea5c13cb4f9d630b9 /src/core
parent52300ccf98f94d48dbde84626097c7c22cfdf867 (diff)
downloadipxe-3dd1989ac0c0b699adcfe5c1c0efa2b229fd1e86.tar.gz
[libc] Match standard prototype for putchar()
Reported-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/console.c5
1 files changed, 4 insertions, 1 deletions
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;
}
/**