X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fll.h;h=bf871f6b0f842a0a42726de48364aad08ea4d3ea;hb=10564d2d51762fa92574ea2a42262157ff013474;hp=4d0d2eb84a6ba26dd8dfd64735b9113e08a30df0;hpb=0b0a278699196c25f4cf0f690e21c5aea2ccabfb;p=pspp diff --git a/src/libpspp/ll.h b/src/libpspp/ll.h index 4d0d2eb84a..bf871f6b0f 100644 --- a/src/libpspp/ll.h +++ b/src/libpspp/ll.h @@ -52,6 +52,8 @@ #include #include +#include + /* Embedded, circular doubly linked list. Each list contains a single "null" element that separates the @@ -380,7 +382,7 @@ ll_tail (const struct ll_list *list) static inline struct ll * ll_null (const struct ll_list *list) { - return (struct ll *) &list->null; + return CONST_CAST (struct ll *, &list->null); } /* Returns the node following LL in its list,