[gnome-user-share] obex: Fix some build warnings



commit 7e5d3fbdc525833043708cd10d3cbfdccab3228e
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Nov 10 02:08:48 2013 +0100

    obex: Fix some build warnings

 src/obexpush.c |    5 ++++-
 src/obexpush.h |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/obexpush.c b/src/obexpush.c
index b7c283f..e042ccf 100644
--- a/src/obexpush.c
+++ b/src/obexpush.c
@@ -281,7 +281,7 @@ ask_user (GDBusMethodInvocation *invocation,
        g_free (notification_text);
 }
 
-gboolean
+static gboolean
 get_paired_for_address (const char *adapter, const char *device)
 {
        GtkTreeModel *model;
@@ -346,6 +346,9 @@ on_session_acquired (GObject *object,
                goto out;
        }
 
+       device = NULL;
+       adapter = NULL;
+
        /* obexd puts the remote device in Destination and our adapter
         * in Source */
        v = g_dbus_proxy_get_cached_property (session, "Destination");
diff --git a/src/obexpush.h b/src/obexpush.h
index 847655e..047098f 100644
--- a/src/obexpush.h
+++ b/src/obexpush.h
@@ -43,7 +43,7 @@ typedef struct _ObexAgentClass {
        GObjectClass parent;
 } ObexAgentClass;
 
-GType obex_agent_get_type();
+GType obex_agent_get_type (void);
 
 #define OBEX_AGENT_TYPE              (obex_agent_get_type ())
 #define OBEX_AGENT(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), OBEX_AGENT_TYPE, ObexAgent))


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