[libdmapsharing] Fix two compiler warnings



commit 49e3880dffe33b714c08c41f55e5702f45d2bc82
Author: W. Michael Petullo <mike flyn org>
Date:   Sun Nov 12 18:29:57 2017 -0500

    Fix two compiler warnings
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/daap-connection.c |    6 +++---
 libdmapsharing/dmap-share.c      |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libdmapsharing/daap-connection.c b/libdmapsharing/daap-connection.c
index 0096869..2e659de 100644
--- a/libdmapsharing/daap-connection.c
+++ b/libdmapsharing/daap-connection.c
@@ -249,7 +249,7 @@ START_TEST(daap_connection_new_test)
 END_TEST
 
 static void
-_append_str_test(GNode *parent, int code, const char *value)
+_append_str_test(GNode *parent, int code, char *value)
 {
        DMAPStructureItem *item;
        GNode *child;
@@ -336,7 +336,7 @@ START_TEST(_handle_mlcl_test)
        _append_int_test(parent, DMAP_CC_ASBR, expected_bitrate);
 
        factory = test_daap_record_factory_new();
-       record  = _handle_mlcl(NULL, factory, parent, &item_id);
+       record  = _handle_mlcl(NULL, DMAP_RECORD_FACTORY(factory), parent, &item_id);
 
        ck_assert_int_eq(expected_item_id, item_id);
 
@@ -403,7 +403,7 @@ START_TEST(_handle_mlcl_bad_code_test)
        _append_str_test(parent, DMAP_CC_MINM, expected_title);
 
        factory = test_daap_record_factory_new();
-       record  = _handle_mlcl(NULL, factory, parent, &item_id);
+       record  = _handle_mlcl(NULL, DMAP_RECORD_FACTORY(factory), parent, &item_id);
 
        g_object_get(record, "title", &title, NULL);
        ck_assert_str_eq(expected_title, title);
diff --git a/libdmapsharing/dmap-share.c b/libdmapsharing/dmap-share.c
index aa503f5..c1550bb 100644
--- a/libdmapsharing/dmap-share.c
+++ b/libdmapsharing/dmap-share.c
@@ -1906,7 +1906,7 @@ _dmap_share_databases (DMAPShare * share,
                dmap_structure_add (mlit, DMAP_CC_ABPL, (gchar) 1);
 
                dmap_container_db_foreach (share->priv->container_db,
-                                          (GHFunc)
+                                          (DMAPIdContainerRecordFunc)
                                           _dmap_share_add_playlist_to_mlcl,
                                           &mb);
 


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