[glib] Don't return values from void functions



commit e52cf810426600fde8b92dc44482b9e19680dc43
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Apr 6 20:41:19 2012 -0400

    Don't return values from void functions
    
    Sun CC does not take that lightly.

 gio/gactionmap.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gio/gactionmap.c b/gio/gactionmap.c
index bc463aa..3d4c481 100644
--- a/gio/gactionmap.c
+++ b/gio/gactionmap.c
@@ -101,8 +101,7 @@ void
 g_action_map_add_action (GActionMap *action_map,
                          GAction    *action)
 {
-  return G_ACTION_MAP_GET_IFACE (action_map)
-    ->add_action (action_map, action);
+  G_ACTION_MAP_GET_IFACE (action_map)->add_action (action_map, action);
 }
 
 /**
@@ -120,8 +119,7 @@ void
 g_action_map_remove_action (GActionMap  *action_map,
                             const gchar *action_name)
 {
-  return G_ACTION_MAP_GET_IFACE (action_map)
-    ->remove_action (action_map, action_name);
+  G_ACTION_MAP_GET_IFACE (action_map)->remove_action (action_map, action_name);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]