From: Simon Kuenzer Date: Thu, 2 Feb 2023 01:32:56 +0000 (+0100) Subject: Update to latest inittab changes X-Git-Tag: RELEASE-0.16.0~5 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d6394f602406c6d2d9f29f865df0b26ab9ebbb87;p=unikraft%2Flibs%2Flwip.git Update to latest inittab changes This commit adopts the glue code to work with the Unikraft updates introduced with [PR #1148](https://github.com/unikraft/unikraft/pull/1148). Signed-off-by: Simon Kuenzer Reviewed-by: Sergiu Moga Approved-by: Razvan Deaconescu GitHub-Closes: #40 --- diff --git a/init.c b/init.c index c729eb3..5aa0b4f 100644 --- a/init.c +++ b/init.c @@ -129,7 +129,7 @@ static void _lwip_init_done(void *arg __unused) /* * This function initializing the lwip network stack */ -static int liblwip_init(void) +static int liblwip_init(struct uk_init_ctx *ictx __unused) { #if CONFIG_LWIP_UKNETDEV && CONFIG_LWIP_AUTOIFACE unsigned int devid; @@ -321,4 +321,10 @@ no_conf: #endif /* CONFIG_LWIP_UKNETDEV && CONFIG_LWIP_AUTOIFACE */ return 0; } -uk_lib_initcall(liblwip_init); + +static void liblwip_term(const struct uk_term_ctx *tctx __unused) +{ + /* nothing to do */ +} + +uk_lib_initcall(liblwip_init, liblwip_term);