]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Return is not a function
authorDirk Hohndel <dirk@hohndel.org>
Thu, 15 Dec 2011 04:49:40 +0000 (20:49 -0800)
committerDirk Hohndel <dirk@hohndel.org>
Thu, 15 Dec 2011 04:53:25 +0000 (20:53 -0800)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
gtk-gui.c
info.c
linux.c
macos.c
uemis.c
windows.c

index c6b79b69076d374887b1ee44565d2af8897a06b0..41e862eb9ca553a200cdc4c092c788b2280ba930 100644 (file)
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -858,7 +858,7 @@ int process_ui_events(void)
                        break;
                }
        }
-       return(ret);
+       return ret;
 }
 
 
diff --git a/info.c b/info.c
index 38087c6e662bdc4d6a3a8ac40630a88c4f5fdfbc..e53af015eb71d4ab63da397c1489fd3bb84ae024 100644 (file)
--- a/info.c
+++ b/info.c
@@ -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)
diff --git a/linux.c b/linux.c
index e26b3acbde1458a3ca338d6b6da73908775a60e0..ac5cf55f938b778afef9bd99ddf70b5f5ffd5551 100644 (file)
--- a/linux.c
+++ b/linux.c
@@ -49,5 +49,5 @@ void subsurface_close_conf(void)
 
 const char *subsurface_USB_name()
 {
-       return("/dev/ttyUSB0");
+       return "/dev/ttyUSB0";
 }
diff --git a/macos.c b/macos.c
index 0b64e19a0ee3c9354d56507c2b233a90bd2f0690..25f946c81db9a52abad2547286e3f12c3b75e5ad 100644 (file)
--- a/macos.c
+++ b/macos.c
@@ -92,5 +92,5 @@ void subsurface_close_conf(void)
 
 const char *subsurface_USB_name()
 {
-       return("/dev/tty.SLAB_USBtoUART");
+       return "/dev/tty.SLAB_USBtoUART";
 }
diff --git a/uemis.c b/uemis.c
index 86b186043486a001b56154b4064e2bdcff4516f7..28302b1c0c75ae955d9ae29baf91fcf74056d676 100644 (file)
--- a/uemis.c
+++ b/uemis.c
@@ -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;
 }
 
 /*
index 3e40c38ef72ccc56d1f03fe6aded3d948fb37a38..8a81737b039082ea4b551534b6072e740abb4b8d 100644 (file)
--- a/windows.c
+++ b/windows.c
@@ -81,5 +81,5 @@ void subsurface_close_conf(void)
 
 const char *subsurface_USB_name()
 {
-       return("COM3");
+       return "COM3";
 }