aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2023-05-06 16:49:40 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-12 03:15:36 +0200
commitf1287e9bc63d986fd6a7f2c4782e2e5fd87aef4c (patch)
tree70d999d943f6c8be3731af383cea17c7913b4f2b /target/linux
parentdc6b55e21f64e9978a805b577c379c3a4a9a2ef0 (diff)
downloadupstream-f1287e9bc63d986fd6a7f2c4782e2e5fd87aef4c.tar.gz
upstream-f1287e9bc63d986fd6a7f2c4782e2e5fd87aef4c.tar.bz2
upstream-f1287e9bc63d986fd6a7f2c4782e2e5fd87aef4c.zip
lantiq: lzma-loader: fix mismatched function declaration
This fix compilation warning: printf.c:14:13: warning: type of 'board_putc' does not match original declaration [-Wlto-type-mismatch] 14 | extern void board_putc(int ch); | ^ board-lantiq.c:24:6: note: type mismatch in parameter 1 24 | void board_putc(char c) | ^ board-lantiq.c:24:6: note: type 'char' should match type 'int' board-lantiq.c:24:6: note: 'board_putc' was previously declared here Fixes: a328b6831c0f ("lantiq: bring back okli loader") Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/lantiq/image/lzma-loader/src/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/lantiq/image/lzma-loader/src/printf.c b/target/linux/lantiq/image/lzma-loader/src/printf.c
index 7bb5a86e18..31b5e19ab1 100644
--- a/target/linux/lantiq/image/lzma-loader/src/printf.c
+++ b/target/linux/lantiq/image/lzma-loader/src/printf.c
@@ -11,7 +11,7 @@
#include "printf.h"
-extern void board_putc(int ch);
+extern void board_putc(char ch);
/* this is the maximum width for a variable */
#define LP_MAX_BUF 256