From: Ben Pfaff Date: Wed, 1 Oct 2008 04:33:09 +0000 (-0700) Subject: Avoid the C99-only feature of declaring a variable as part of a for statement. X-Git-Tag: v0.7.1~50^2~44 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aa5d735c587e0ba8ef616426f8e45f8a7bf1e2a;p=pspp-builds.git Avoid the C99-only feature of declaring a variable as part of a for statement. --- 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);