lib: os: Fix function signature of str_out
Update the str_out function signature to match the expected cbprintf_cb_local type: typedef int (*cbprintf_cb_local)(int c, void *ctx); Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
This commit is contained in:
parent
bbfaf8adec
commit
3b90ed6122
1 changed files with 2 additions and 1 deletions
|
@ -210,8 +210,9 @@ struct str_context {
|
||||||
int count;
|
int count;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int str_out(int c, struct str_context *ctx)
|
static int str_out(int c, void *context)
|
||||||
{
|
{
|
||||||
|
struct str_context *ctx = context;
|
||||||
if ((ctx->str == NULL) || (ctx->count >= ctx->max)) {
|
if ((ctx->str == NULL) || (ctx->count >= ctx->max)) {
|
||||||
++ctx->count;
|
++ctx->count;
|
||||||
return c;
|
return c;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue