Skip to content

Commit

Permalink
mbedtls: fix _mbedtls_init() invocation
Browse files Browse the repository at this point in the history
SYS_INIT() requires pointer to function that takes `void` now, instead of
pointer to device structure. Since the commit was developed before that
switch, it still invoked it with NULL. Fix that now.

Fixes:

  zephyr/modules/mbedtls/zephyr_init.c: In function 'mbedtls_init':
  zephyr/modules/mbedtls/zephyr_init.c:108:16: error: too many arguments \
                                              to function '_mbedtls_init'
    108 |         return _mbedtls_init(NULL);
        |                ^~~~~~~~~~~~~
  zephyr/modules/mbedtls/zephyr_init.c:86:12: note: declared here
     86 | static int _mbedtls_init(void)
        |

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
  • Loading branch information
mniestroj authored and cfriedt committed Jul 6, 2023
1 parent d039987 commit 630555d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mbedtls/zephyr_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ SYS_INIT(_mbedtls_init, POST_KERNEL, 0);
*/
int mbedtls_init(void)
{
return _mbedtls_init(NULL);
return _mbedtls_init();
}

0 comments on commit 630555d

Please sign in to comment.