X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fll.c;h=619adfac244430b5b6b3e231dd29f075737154a8;hb=6c8b13da57b074620495a0543bd7944bca574a42;hp=21f8dd8870a2fc96b48ccfd49c228aeb7bc3db21;hpb=81579d9e9f994fb2908f50af41c3eb033d216e58;p=pspp diff --git a/src/libpspp/ll.c b/src/libpspp/ll.c index 21f8dd8870..619adfac24 100644 --- a/src/libpspp/ll.c +++ b/src/libpspp/ll.c @@ -30,7 +30,6 @@ #include "libpspp/ll.h" -#include /* Returns the number of nodes in LIST (not counting the null node). Executes in O(n) time in the length of the list. */ @@ -122,7 +121,7 @@ ll_remove_equal (struct ll *r0, struct ll *r1, struct ll *target, size_t count; count = 0; - for (x = r0; x != r1; ) + for (x = r0; x != r1;) if (compare (x, target, aux) == 0) { x = ll_remove (x); @@ -145,7 +144,7 @@ ll_remove_if (struct ll *r0, struct ll *r1, size_t count; count = 0; - for (x = r0; x != r1; ) + for (x = r0; x != r1;) if (predicate (x, aux)) { x = ll_remove (x);