[libdmapsharing/LIBDMAPSHARING_3_0] Fix some compiler warnings
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing/LIBDMAPSHARING_3_0] Fix some compiler warnings
- Date: Tue, 30 Jun 2020 20:44:26 +0000 (UTC)
commit 097f3dad98c11f7687eb798cd5987ec9be4afa60
Author: W. Michael Petullo <mike flyn org>
Date: Tue Jun 30 13:55:41 2020 -0400
Fix some compiler warnings
libdmapsharing/daap-connection.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libdmapsharing/daap-connection.c b/libdmapsharing/daap-connection.c
index 1aac850..20bb9c5 100644
--- a/libdmapsharing/daap-connection.c
+++ b/libdmapsharing/daap-connection.c
@@ -247,7 +247,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;
@@ -334,7 +334,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);
@@ -390,7 +390,7 @@ START_TEST(_handle_mlcl_bad_code_test)
GNode *parent;
DMAPRecord *record;
int item_id;
- char *set_value = "value", *value = NULL;
+ char *set_value = "value";
char *expected_title = "title", *title = NULL;
item = g_new0(DMAPStructureItem, 1);
@@ -401,7 +401,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]