summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hurd/pfinet.defs2
-rw-r--r--pfinet/pfinet-ops.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hurd/pfinet.defs b/hurd/pfinet.defs
index a42b6d0c..ec0b03e3 100644
--- a/hurd/pfinet.defs
+++ b/hurd/pfinet.defs
@@ -29,7 +29,7 @@ INTR_INTERFACE
/* Return a list of interfaces as expected by the SIOCGIFCONF ioctl.
The maximum number of bytes returned can be given in AMOUNT, but if
- AMOUNT is negative, all interfaces will be returned. Always
+ AMOUNT is -1, all interfaces will be returned. Always
succeeds (and interface list will be truncated to fit into AMOUNT
space) for BSD compatibility. */
routine pfinet_siocgifconf (
diff --git a/pfinet/pfinet-ops.c b/pfinet/pfinet-ops.c
index a61028ef..8e251020 100644
--- a/pfinet/pfinet-ops.c
+++ b/pfinet/pfinet-ops.c
@@ -49,7 +49,7 @@ S_pfinet_siocgifconf (io_t port,
struct ifconf ifc;
__mutex_lock (&global_lock);
- if (amount < 0)
+ if (amount == (vm_size_t) -1)
{
/* Get the needed buffer length. */
ifc.ifc_buf = NULL;