X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fll.c;h=619adfac244430b5b6b3e231dd29f075737154a8;hb=6c8b13da57b074620495a0543bd7944bca574a42;hp=e6533f2cd25fccf5beb2cbf9a4da31c279022027;hpb=8b71948cd57dbd2787cb4c50525b957e9be8a62b;p=pspp diff --git a/src/libpspp/ll.c b/src/libpspp/ll.c index e6533f2cd2..619adfac24 100644 --- a/src/libpspp/ll.c +++ b/src/libpspp/ll.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,8 +28,8 @@ #include #endif -#include -#include +#include "libpspp/ll.h" + /* Returns the number of nodes in LIST (not counting the null node). Executes in O(n) time in the length of the list. */ @@ -121,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); @@ -144,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);