mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
468d3f28f9
commit
e3a8ed5183
17 changed files with 103 additions and 164 deletions
8
info.c
8
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue