diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-09-22 02:54:27 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-09-22 02:54:27 +0200 |
commit | 2c1d33f813fdcc02452a51bfb21f123c4896bdea (patch) | |
tree | c87664bcff96a1615fd44b1c62bca8b4e272262c /pfinet | |
parent | 6c92f6696e129aed2084d199d1522005e2747ea7 (diff) | |
download | hurd-2c1d33f813fdcc02452a51bfb21f123c4896bdea.tar.gz hurd-2c1d33f813fdcc02452a51bfb21f123c4896bdea.tar.bz2 hurd-2c1d33f813fdcc02452a51bfb21f123c4896bdea.zip |
pfinet: Fix warning
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pfinet/main.c b/pfinet/main.c index 1df987f0..e3e027c7 100644 --- a/pfinet/main.c +++ b/pfinet/main.c @@ -346,8 +346,7 @@ main (int argc, if (bootstrap != MACH_PORT_NULL) { /* Create portclass to install on the bootstrap port. */ - if(pfinet_protid_portclasses[pfinet_bootstrap_portclass] - != MACH_PORT_NULL) + if(pfinet_protid_portclasses[pfinet_bootstrap_portclass] != NULL) error(1, 0, "No portclass left to assign to bootstrap port"); #ifdef CONFIG_IPV6 @@ -389,7 +388,7 @@ main (int argc, /* Check that at least one portclass has been bound, error out otherwise. */ for (i = 0; i < ARRAY_SIZE (pfinet_protid_portclasses); i++) - if (pfinet_protid_portclasses[i] != MACH_PORT_NULL) + if (pfinet_protid_portclasses[i] != NULL) break; if (i == ARRAY_SIZE (pfinet_protid_portclasses)) @@ -442,7 +441,7 @@ pfinet_bind (int portclass, const char *name) err = errno; if (! err) { - if (pfinet_protid_portclasses[portclass] != MACH_PORT_NULL) + if (pfinet_protid_portclasses[portclass] != NULL) error (1, 0, "Cannot bind one protocol to multiple nodes.\n"); #ifdef CONFIG_IPV6 |