]> Dogcows Code - chaz/rasterize/blobdiff - list.h
add scene lighting constructs; real stdin support
[chaz/rasterize] / list.h
diff --git a/list.h b/list.h
index 5adf22874fede7db45e32a99ad7d77a3ef078b1a..91f176d50325afb1153c829223697cbe19203a8b 100644 (file)
--- a/list.h
+++ b/list.h
@@ -94,10 +94,10 @@ void list_pop(list_t** l)
  * This is a O(n) operation.
  */
 INLINE_MAYBE
-void list_destroy(list_t* l)
+void list_destroy(list_t** l)
 {
-    while (l) {
-        list_pop(&l);
+    while (*l) {
+        list_pop(l);
     }
 }
 
This page took 0.016778 seconds and 4 git commands to generate.