[vinagre/gnome-3-6] Fix missing prototypes warnings



commit c3fcb58ed8b630cab5b9d9a417ead0cad0c36b36
Author: David King <amigadave amigadave com>
Date:   Mon Nov 12 21:13:31 2012 +0000

    Fix missing prototypes warnings

 plugins/rdp/vinagre-rdp-plugin.c     |    1 +
 plugins/spice/vinagre-spice-plugin.c |    1 +
 plugins/ssh/vinagre-ssh-plugin.c     |    2 ++
 plugins/vnc/vinagre-vnc-plugin.c     |    2 ++
 vinagre/view/autoDrawer.c            |    2 +-
 vinagre/view/ovBox.c                 |    2 +-
 vinagre/vinagre-protocol.c           |    2 +-
 vinagre/vinagre-tab.c                |   10 +++++-----
 8 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/plugins/rdp/vinagre-rdp-plugin.c b/plugins/rdp/vinagre-rdp-plugin.c
index f1b09b2..41d7cd0 100644
--- a/plugins/rdp/vinagre-rdp-plugin.c
+++ b/plugins/rdp/vinagre-rdp-plugin.c
@@ -32,6 +32,7 @@
 #include "vinagre-rdp-connection.h"
 #include "vinagre-rdp-tab.h"
 
+void rdp_register_types (void);
 static void vinagre_rdp_protocol_iface_init (VinagreProtocolInterface *iface);
 
 G_DEFINE_TYPE_EXTENDED (VinagreRdpPlugin,
diff --git a/plugins/spice/vinagre-spice-plugin.c b/plugins/spice/vinagre-spice-plugin.c
index 3ce16b2..da0d885 100644
--- a/plugins/spice/vinagre-spice-plugin.c
+++ b/plugins/spice/vinagre-spice-plugin.c
@@ -33,6 +33,7 @@
 #include "vinagre-spice-connection.h"
 #include "vinagre-spice-tab.h"
 
+void spice_register_types (void);
 static void vinagre_spice_protocol_iface_init (VinagreProtocolInterface *iface);
 
 G_DEFINE_TYPE_EXTENDED (VinagreSpicePlugin,
diff --git a/plugins/ssh/vinagre-ssh-plugin.c b/plugins/ssh/vinagre-ssh-plugin.c
index ae37366..38306d5 100644
--- a/plugins/ssh/vinagre-ssh-plugin.c
+++ b/plugins/ssh/vinagre-ssh-plugin.c
@@ -37,7 +37,9 @@
 #include <avahi-common/malloc.h>
 #endif
 
+void ssh_register_types (void);
 static void vinagre_ssh_protocol_iface_init (VinagreProtocolInterface *iface);
+
 G_DEFINE_TYPE_EXTENDED (VinagreSshPlugin,
 			vinagre_ssh_plugin,
 			VINAGRE_TYPE_STATIC_EXTENSION,
diff --git a/plugins/vnc/vinagre-vnc-plugin.c b/plugins/vnc/vinagre-vnc-plugin.c
index f4d4b70..5b5153c 100644
--- a/plugins/vnc/vinagre-vnc-plugin.c
+++ b/plugins/vnc/vinagre-vnc-plugin.c
@@ -35,6 +35,8 @@
 #include "vinagre-vnc-connection.h"
 #include "vinagre-vnc-tab.h"
 
+void vnc_register_types (void);
+
 static void vinagre_vnc_protocol_iface_init (VinagreProtocolInterface *iface);
 G_DEFINE_TYPE_EXTENDED (VinagreVncPlugin,
 			vinagre_vnc_plugin,
diff --git a/vinagre/view/autoDrawer.c b/vinagre/view/autoDrawer.c
index b92fbda..49b6be7 100644
--- a/vinagre/view/autoDrawer.c
+++ b/vinagre/view/autoDrawer.c
@@ -513,7 +513,7 @@ ViewAutoDrawerSetOver(ViewOvBox *ovBox,  // IN
  *-----------------------------------------------------------------------------
  */
 
-void
+static void
 ViewAutoDrawerRefreshPacking(ViewAutoDrawer *that) // IN
 {
    gboolean expand;
diff --git a/vinagre/view/ovBox.c b/vinagre/view/ovBox.c
index 83d392a..6f0ee73 100644
--- a/vinagre/view/ovBox.c
+++ b/vinagre/view/ovBox.c
@@ -953,7 +953,7 @@ ViewOvBox_GetFraction(ViewOvBox *that)
  *-----------------------------------------------------------------------------
  */
 
-void
+static void
 ViewOvBox_SetVerticalOffset(ViewOvBox *that, // IN
                             gint offset)     // IN
 {
diff --git a/vinagre/vinagre-protocol.c b/vinagre/vinagre-protocol.c
index f6e58f8..3040d8c 100644
--- a/vinagre/vinagre-protocol.c
+++ b/vinagre/vinagre-protocol.c
@@ -40,7 +40,7 @@ default_get_default_port (VinagreProtocol *protocol)
   return 0;
 }
 
-GSList *
+static GSList *
 default_get_context_groups (VinagreProtocol *protocol)
 {
   return NULL;
diff --git a/vinagre/vinagre-tab.c b/vinagre/vinagre-tab.c
index a941303..32730da 100644
--- a/vinagre/vinagre-tab.c
+++ b/vinagre/vinagre-tab.c
@@ -197,32 +197,32 @@ vinagre_tab_dispose (GObject *object)
   G_OBJECT_CLASS (vinagre_tab_parent_class)->dispose (object);
 }
 
-void
+static void
 default_get_dimensions (VinagreTab *tab, int *w, int *h)
 {
   *w = -1;
   *h = -1;
 }
 
-const GSList *
+static const GSList *
 default_get_always_sensitive_actions (VinagreTab *tab)
 {
   return NULL;
 }
 
-const GSList *
+static const GSList *
 default_get_connected_actions (VinagreTab *tab)
 {
   return NULL;
 }
 
-const GSList *
+static const GSList *
 default_get_initialized_actions (VinagreTab *tab)
 {
   return NULL;
 }
 
-gchar *
+static gchar *
 default_get_extra_title (VinagreTab *tab)
 {
   return NULL;



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