diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-09-16 17:23:01 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-09-17 15:25:35 -0700 |
commit | d4bdb8c73d82f41551348b2d3bda14ed0c3310c5 (patch) | |
tree | bf7bcd3e9a30106a565dfb8057852ee02dcf09c1 /dive.h | |
parent | 67a45a44e13b4f6b67832173f8ef08247179dad7 (diff) | |
download | subsurface-d4bdb8c73d82f41551348b2d3bda14ed0c3310c5.tar.gz |
Fix compilation with C99
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -362,7 +362,7 @@ static inline int get_surface_pressure_in_mbar(const struct dive *dive, bool non /* Pa = N/m^2 - so we determine the weight (in N) of the mass of 10m * of water (and use standard salt water at 1.03kg per liter if we don't know salinity) * and add that to the surface pressure (or to 1013 if that's unknown) */ -inline int calculate_depth_to_mbar(int depth, pressure_t surface_pressure, int salinity) +static inline int calculate_depth_to_mbar(int depth, pressure_t surface_pressure, int salinity) { double specific_weight; int mbar = surface_pressure.mbar; @@ -376,7 +376,7 @@ inline int calculate_depth_to_mbar(int depth, pressure_t surface_pressure, int s return mbar; } -inline int depth_to_mbar(int depth, struct dive *dive) +static inline int depth_to_mbar(int depth, struct dive *dive) { return calculate_depth_to_mbar(depth, dive->surface_pressure, dive->salinity); } |