From 4891fa812f04da1f46075433d28fa0f33145e125 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 13 Nov 2011 15:51:34 -0200 Subject: [PATCH] Fix minor coding standard issues introduced by my last commit Signed-off-by: Dirk Hohndel --- divelist.c | 2 +- equipment.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/divelist.c b/divelist.c index bf853ec..81779f0 100644 --- a/divelist.c +++ b/divelist.c @@ -337,7 +337,7 @@ static int calculate_sac(struct dive *dive) void update_cylinder_related_info(struct dive *dive) { - if(dive != NULL) { + if (dive != NULL) { dive->sac = calculate_sac(dive); dive->otu = calculate_otu(dive); } diff --git a/equipment.c b/equipment.c index dbe1f0f..f86e63b 100644 --- a/equipment.c +++ b/equipment.c @@ -419,8 +419,9 @@ static void record_cylinder_changes(cylinder_t *cyl, struct cylinder_widget *cyl if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cylinder->pressure_button))) { start = gtk_spin_button_get_value(GTK_SPIN_BUTTON(cylinder->start)); end = gtk_spin_button_get_value(GTK_SPIN_BUTTON(cylinder->end)); - } else + } else { start = end = 0; + } if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cylinder->gasmix_button))) o2 = gtk_spin_button_get_value(GTK_SPIN_BUTTON(cylinder->o2))*10 + 0.5; else -- 2.45.2