diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-12-14 20:49:40 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-12-14 20:53:25 -0800 |
commit | 0a9e5aa7353476d70c4eb9866aeda979118d04e5 (patch) | |
tree | c5ce21519f5719ab25facb4727bbdf90f0dca0d9 | |
parent | 6245b700a4a98cc2dba8c5b8c3f4958491605755 (diff) | |
download | subsurface-0a9e5aa7353476d70c4eb9866aeda979118d04e5.tar.gz |
Return is not a function
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | gtk-gui.c | 2 | ||||
-rw-r--r-- | info.c | 4 | ||||
-rw-r--r-- | linux.c | 2 | ||||
-rw-r--r-- | macos.c | 2 | ||||
-rw-r--r-- | uemis.c | 2 | ||||
-rw-r--r-- | windows.c | 2 |
6 files changed, 7 insertions, 7 deletions
@@ -858,7 +858,7 @@ int process_ui_events(void) break; } } - return(ret); + return ret; } @@ -38,8 +38,8 @@ static char *get_text(GtkTextView *view) * NOTW: NULL and "" need to be treated as "unchanged" */ static int text_changed(const char *old, const char *new) { - return ((old && strcmp(old,new)) || - (!old && strcmp("",new))); + return (old && strcmp(old,new)) || + (!old && strcmp("",new)); } static char *get_combo_box_entry_text(GtkComboBoxEntry *combo_box, char **textp) @@ -49,5 +49,5 @@ void subsurface_close_conf(void) const char *subsurface_USB_name() { - return("/dev/ttyUSB0"); + return "/dev/ttyUSB0"; } @@ -92,5 +92,5 @@ void subsurface_close_conf(void) const char *subsurface_USB_name() { - return("/dev/tty.SLAB_USBtoUART"); + return "/dev/tty.SLAB_USBtoUART"; } @@ -88,7 +88,7 @@ static int pressure_to_depth(uint16_t value) atm = bar_to_atm(value / 100.0); cm = 100 * atm + 0.5; - return( (cm > 0) ? 10 * (long)cm : 0); + return (cm > 0) ? 10 * (long)cm : 0; } /* @@ -81,5 +81,5 @@ void subsurface_close_conf(void) const char *subsurface_USB_name() { - return("COM3"); + return "COM3"; } |