From 8fb38008cc0abccdce7b8a971bf0c3f1745655b8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 22 Feb 2011 01:57:01 +0100 Subject: 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). --- hurd/pfinet.defs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hurd') 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 ( -- cgit v1.2.3