[PATCH 4/6] Make local helpers static

Anton Lundin glance at acc.umu.se
Sat Dec 7 14:54:17 UTC 2013


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 planner.c    | 2 +-
 statistics.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/planner.c b/planner.c
index a1954d0..8a2bb25 100644
--- a/planner.c
+++ b/planner.c
@@ -192,7 +192,7 @@ void fill_default_cylinder(cylinder_t *cyl)
 	}
 }
 
-int add_gas(struct dive *dive, int o2, int he)
+static int add_gas(struct dive *dive, int o2, int he)
 {
 	int i;
 	struct gasmix *mix;
diff --git a/statistics.c b/statistics.c
index 18666bd..0c823b1 100644
--- a/statistics.c
+++ b/statistics.c
@@ -292,7 +292,7 @@ void get_selected_dives_text(char *buffer, int size)
 	}
 }
 
-bool is_gas_used(struct dive *dive, int idx)
+static bool is_gas_used(struct dive *dive, int idx)
 {
 	struct divecomputer *dc = &dive->dc;
 	bool firstGasExplicit = FALSE;
-- 
1.8.3.2



More information about the subsurface mailing list