Author: tqh Date: 2011-06-29 23:13:12 +0200 (Wed, 29 Jun 2011) New Revision: 42342 Changeset: https://dev.haiku-os.org/changeset/42342 Ticket: https://dev.haiku-os.org/ticket/7750 Modified: haiku/trunk/src/libs/compat/freebsd_network/compat.c Log: Guesswork but since #7750 stops in this loop, and all other similar loops look like this (and it works here): I think we need to update child. Let me know if I'm wrong. This should fix #7750. Modified: haiku/trunk/src/libs/compat/freebsd_network/compat.c =================================================================== --- haiku/trunk/src/libs/compat/freebsd_network/compat.c 2011-06-29 18:17:24 UTC (rev 42341) +++ haiku/trunk/src/libs/compat/freebsd_network/compat.c 2011-06-29 21:13:12 UTC (rev 42342) @@ -183,7 +183,7 @@ device_t *list; count = 0; - while (list_get_next_item(&dev->children, child) != NULL) { + while ((child = list_get_next_item(&dev->children, child)) != NULL) { count++; }