Merge branch 'forlinus' of git://git.hohndel.org/subsurface
* 'forlinus' of git://git.hohndel.org/subsurface: Return is not a function
This commit is contained in:
commit
b5139aeb22
@ -858,7 +858,7 @@ int process_ui_events(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return(ret);
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
info.c
4
info.c
@ -38,8 +38,8 @@ static char *get_text(GtkTextView *view)
|
|||||||
* NOTW: NULL and "" need to be treated as "unchanged" */
|
* NOTW: NULL and "" need to be treated as "unchanged" */
|
||||||
static int text_changed(const char *old, const char *new)
|
static int text_changed(const char *old, const char *new)
|
||||||
{
|
{
|
||||||
return ((old && strcmp(old,new)) ||
|
return (old && strcmp(old,new)) ||
|
||||||
(!old && strcmp("",new)));
|
(!old && strcmp("",new));
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *get_combo_box_entry_text(GtkComboBoxEntry *combo_box, char **textp)
|
static char *get_combo_box_entry_text(GtkComboBoxEntry *combo_box, char **textp)
|
||||||
|
|||||||
2
linux.c
2
linux.c
@ -49,5 +49,5 @@ void subsurface_close_conf(void)
|
|||||||
|
|
||||||
const char *subsurface_USB_name()
|
const char *subsurface_USB_name()
|
||||||
{
|
{
|
||||||
return("/dev/ttyUSB0");
|
return "/dev/ttyUSB0";
|
||||||
}
|
}
|
||||||
|
|||||||
2
macos.c
2
macos.c
@ -92,5 +92,5 @@ void subsurface_close_conf(void)
|
|||||||
|
|
||||||
const char *subsurface_USB_name()
|
const char *subsurface_USB_name()
|
||||||
{
|
{
|
||||||
return("/dev/tty.SLAB_USBtoUART");
|
return "/dev/tty.SLAB_USBtoUART";
|
||||||
}
|
}
|
||||||
|
|||||||
2
uemis.c
2
uemis.c
@ -88,7 +88,7 @@ static int pressure_to_depth(uint16_t value)
|
|||||||
|
|
||||||
atm = bar_to_atm(value / 100.0);
|
atm = bar_to_atm(value / 100.0);
|
||||||
cm = 100 * atm + 0.5;
|
cm = 100 * atm + 0.5;
|
||||||
return( (cm > 0) ? 10 * (long)cm : 0);
|
return (cm > 0) ? 10 * (long)cm : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user