X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=equipment.c;fp=equipment.c;h=037e542083bd6e4b8ccf55596f5380b912eff5bc;hb=9b1ea2ae6d6998aaaa842dabf1182c279f7d19f5;hp=2b278934d559cba41c5ccd8eca9293fc18671423;hpb=fe532a585cb0c1250cca5994a78394aadc3e14dd;p=ext%2Fsubsurface.git diff --git a/equipment.c b/equipment.c index 2b27893..037e542 100644 --- a/equipment.c +++ b/equipment.c @@ -286,7 +286,7 @@ static void show_cylinder(cylinder_t *cyl, struct cylinder_widget *cylinder) gtk_spin_button_set_value(GTK_SPIN_BUTTON(cylinder->o2), o2); } -static int cyl_nothing(cylinder_t *cyl) +int cylinder_none(cylinder_t *cyl) { return !cyl->type.size.mliter && !cyl->type.workingpressure.mbar && @@ -328,7 +328,7 @@ void show_dive_equipment(struct dive *dive) do { cylinder_t *cyl = &dive->cylinder[max-1]; - if (!cyl_nothing(cyl)) + if (!cylinder_none(cyl)) break; } while (--max);