From 3aa5d735c587e0ba8ef616426f8e45f8a7bf1e2a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 30 Sep 2008 21:33:09 -0700 Subject: [PATCH] Avoid the C99-only feature of declaring a variable as part of a for statement. --- src/output/charts/box-whisker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/output/charts/box-whisker.c b/src/output/charts/box-whisker.c index 4878221d..c3641580 100644 --- a/src/output/charts/box-whisker.c +++ b/src/output/charts/box-whisker.c @@ -63,6 +63,7 @@ boxplot_draw_boxplot (struct chart *ch, { double whisker[2]; double hinge[3]; + struct ll *ll; const struct ll_list *outliers; @@ -138,7 +139,7 @@ boxplot_draw_boxplot (struct chart *ch, box_centre, box_top); outliers = box_whisker_outliers (bw); - for (struct ll *ll = ll_head (outliers); + for (ll = ll_head (outliers); ll != ll_null (outliers); ll = ll_next (ll)) { const struct outlier *outlier = ll_data (ll, struct outlier, ll); -- 2.30.2