warnings removed
authorAmarnath Valluri <amarnath.valluri@linux.intel.com>
Wed, 16 Oct 2013 10:00:10 +0000 (13:00 +0300)
committerAmarnath Valluri <amarnath.valluri@linux.intel.com>
Wed, 16 Oct 2013 10:00:10 +0000 (13:00 +0300)
daemon/dbus-manager.c
lib/msgport-utils.c

index 7603309..e34f541 100644 (file)
@@ -317,7 +317,7 @@ msgport_dbus_manager_validate_peer_certificate (MsgPortDbusManager *dbus_manager
 
     /* check if we have cached status */
     if (g_hash_table_contains (dbus_manager->priv->peer_certs, peer_app_id))
-        return (gboolean) g_hash_table_lookup (dbus_manager->priv->peer_certs, peer_app_id);
+        return ((gboolean)(glong)g_hash_table_lookup (dbus_manager->priv->peer_certs, peer_app_id));
 #if 0
     if ((res = pkgmgrinfo_pkginfo_compare_app_cert_info (dbus_manager->priv->app_id,
                     peer_app_id, &compare_result)) != PACKAGE_MANAGER_ERROR_NONE) {
index 7c87f2d..fadaa6f 100644 (file)
@@ -70,4 +70,6 @@ msgport_daemon_error_to_error (const GError *error)
         case MSGPORT_ERROR_IO_ERROR:
             return MESSAGEPORT_ERROR_IO_ERROR;
     }
+
+    return MESSAGEPORT_ERROR_IO_ERROR;
 }