From 6c92f6696e129aed2084d199d1522005e2747ea7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 22 Sep 2022 02:53:36 +0200 Subject: lwip: Fix warning --- lwip/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lwip/main.c') diff --git a/lwip/main.c b/lwip/main.c index 0d7c9d6b..ff9051db 100644 --- a/lwip/main.c +++ b/lwip/main.c @@ -161,7 +161,7 @@ translator_bind (int portclass, const char *name) if (!err) { - if (lwip_protid_portclasses[portclass] != MACH_PORT_NULL) + if (lwip_protid_portclasses[portclass] != NULL) error (1, 0, "Cannot bind one protocol to multiple nodes.\n"); err = @@ -221,7 +221,7 @@ main (int argc, char **argv) error (-1, 0, "Must be started as a translator"); /* Create portclass to install on the bootstrap port. */ - if (lwip_protid_portclasses[lwip_bootstrap_portclass] != MACH_PORT_NULL) + if (lwip_protid_portclasses[lwip_bootstrap_portclass] != NULL) error (1, 0, "No portclass left to assign to bootstrap port"); err = -- cgit v1.2.3