]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Update to latest inittab changes
authorSimon Kuenzer <simon@unikraft.io>
Thu, 2 Feb 2023 01:32:56 +0000 (02:32 +0100)
committerSimon Kuenzer <simon@unikraft.io>
Mon, 11 Dec 2023 12:59:20 +0000 (13:59 +0100)
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 <simon@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #40

init.c

diff --git a/init.c b/init.c
index c729eb3edf596139b12a1c1473fc60c529f3d0ac..5aa0b4fcce89054a449331375030ea7ad21ed8ea 100644 (file)
--- 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);