summaryrefslogtreecommitdiff
path: root/hurd/pfinet.defs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-02-22 01:57:01 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-02-22 01:57:01 +0100
commit8fb38008cc0abccdce7b8a971bf0c3f1745655b8 (patch)
tree65a82bc6117efbd661d7f103e5a4455c87ada668 /hurd/pfinet.defs
parent0cbb8c0650eacae336687243904048a0d22233a2 (diff)
Fix S_pfinet_siocgifconf given -1 as amount
* hurd/pfinet.defs (pfinet_siocgifconf): Document that -1 is used for "all interfaces". * pfinet/pfinet-ops.c (S_pfinet_siocgifconf): Compare amount with `(vm_size_t) -1' instead of '< 0' (which can never happen).
Diffstat (limited to 'hurd/pfinet.defs')
-rw-r--r--hurd/pfinet.defs2
1 files changed, 1 insertions, 1 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 (