summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-30 08:10:46 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-30 08:31:53 +1100
commite3a8ed5183ed5a24e391395c9faeae03dc9e4a6a (patch)
tree6490fa5d2d135dd74b748f0fe31179411144f63f /info.c
parent468d3f28f9f1f2795960b8e8b79b9d02024e34ed (diff)
downloadsubsurface-e3a8ed5183ed5a24e391395c9faeae03dc9e4a6a.tar.gz
Massive cleanup
Mostly coding style and whitespace changes plus making lots of functions static that have no need to be extern. This also helped find a bit of code that is actually no longer used. This should have absolutely no functional impact - all changes should be purely cosmetic. But it removes a bunch of lines of code and makes the rest easier to read. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/info.c b/info.c
index ed5bdb553..65ad8b128 100644
--- a/info.c
+++ b/info.c
@@ -563,7 +563,7 @@ static void save_dive_info_changes(struct dive *dive, struct dive *master, struc
free(rating_string);
new_text = (char *)gtk_entry_get_text(info->airtemp);
- if(sscanf(new_text, "%lf", &newtemp) == 1) {
+ if (sscanf(new_text, "%lf", &newtemp) == 1) {
unsigned long mkelvin;
switch (prefs.units.temperature) {
case CELSIUS:
@@ -619,7 +619,7 @@ struct location_update {
void (*callback)(float, float);
} location_update;
-void print_gps_coordinates(char *buffer, int len, float lat, float lon)
+static void print_gps_coordinates(char *buffer, int len, float lat, float lon)
{
unsigned int latdeg, londeg;
float latmin, lonmin;
@@ -638,7 +638,7 @@ void print_gps_coordinates(char *buffer, int len, float lat, float lon)
lonh, londeg, UTF8_DEGREE, lonmin);
}
-void update_gps_entry(float lat, float lon)
+static void update_gps_entry(float lat, float lon)
{
char gps_text[45];
@@ -831,7 +831,7 @@ static void update_cylinder(cylinder_t *dst, cylinder_t *src, cylinder_t *orig)
data if it has changed in the master dive and the other dive
either has no entries for the equipment or the same entries
as the master dive had before it was edited */
-void update_equipment_data(struct dive *dive, struct dive *master)
+static void update_equipment_data(struct dive *dive, struct dive *master)
{
int i;