]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix minor coding standard issues introduced by my last commit
authorDirk Hohndel <dirk@hohndel.org>
Sun, 13 Nov 2011 17:51:34 +0000 (15:51 -0200)
committerDirk Hohndel <dirk@hohndel.org>
Sun, 13 Nov 2011 17:51:34 +0000 (15:51 -0200)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
divelist.c
equipment.c

index bf853ec0e49fce534853c3b59e98abb0d9a314a1..81779f06d25af2a4e10a05dfa62e953cdec0be7c 100644 (file)
@@ -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);
        }
index dbe1f0f137be5f769608c5e4d21dfe58dd917c59..f86e63b2073f0982902dfb3a55bf1f6e7c9b1f50 100644 (file)
@@ -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