summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/plist/plist.h4
-rw-r--r--src/plist.c6
-rw-r--r--src/plist.h2
-rw-r--r--src/xplist.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index 4547f18..7bdd00a 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -94,7 +94,7 @@ extern "C" {
94 * @return the created plist 94 * @return the created plist
95 * @sa #plist_type 95 * @sa #plist_type
96 */ 96 */
97 PLIST_API plist_t plist_new_dict(); 97 PLIST_API plist_t plist_new_dict(void);
98 98
99/** 99/**
100 * Create a new root plist_t type #PLIST_ARRAY 100 * Create a new root plist_t type #PLIST_ARRAY
@@ -102,7 +102,7 @@ extern "C" {
102 * @return the created plist 102 * @return the created plist
103 * @sa #plist_type 103 * @sa #plist_type
104 */ 104 */
105 PLIST_API plist_t plist_new_array(); 105 PLIST_API plist_t plist_new_array(void);
106 106
107/** 107/**
108 * Destruct a plist_t node and all its children recursively 108 * Destruct a plist_t node and all its children recursively
diff --git a/src/plist.c b/src/plist.c
index e800b5c..bdec7a8 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -38,7 +38,7 @@ plist_data_t plist_get_data(const plist_t node)
38 return ((GNode *) node)->data; 38 return ((GNode *) node)->data;
39} 39}
40 40
41plist_data_t plist_new_plist_data() 41plist_data_t plist_new_plist_data(void)
42{ 42{
43 plist_data_t data = (plist_data_t) calloc(sizeof(struct plist_data_s), 1); 43 plist_data_t data = (plist_data_t) calloc(sizeof(struct plist_data_s), 1);
44 return data; 44 return data;
@@ -68,14 +68,14 @@ static void plist_free_node(GNode * node, gpointer none)
68 g_node_children_foreach(node, G_TRAVERSE_ALL, plist_free_node, NULL); 68 g_node_children_foreach(node, G_TRAVERSE_ALL, plist_free_node, NULL);
69} 69}
70 70
71plist_t plist_new_dict() 71plist_t plist_new_dict(void)
72{ 72{
73 plist_data_t data = plist_new_plist_data(); 73 plist_data_t data = plist_new_plist_data();
74 data->type = PLIST_DICT; 74 data->type = PLIST_DICT;
75 return plist_new_node(data); 75 return plist_new_node(data);
76} 76}
77 77
78plist_t plist_new_array() 78plist_t plist_new_array(void)
79{ 79{
80 plist_data_t data = plist_new_plist_data(); 80 plist_data_t data = plist_new_plist_data();
81 data->type = PLIST_ARRAY; 81 data->type = PLIST_ARRAY;
diff --git a/src/plist.h b/src/plist.h
index 83c63bf..ebbb0b5 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -48,7 +48,7 @@ typedef struct plist_data_s *plist_data_t;
48 48
49plist_t plist_new_node(plist_data_t data); 49plist_t plist_new_node(plist_data_t data);
50plist_data_t plist_get_data(const plist_t node); 50plist_data_t plist_get_data(const plist_t node);
51plist_data_t plist_new_plist_data(); 51plist_data_t plist_new_plist_data(void);
52gboolean plist_data_compare(gconstpointer a, gconstpointer b); 52gboolean plist_data_compare(gconstpointer a, gconstpointer b);
53 53
54 54
diff --git a/src/xplist.c b/src/xplist.c
index c0849b6..2bee7c7 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -99,7 +99,7 @@ struct xml_node {
99 * 99 *
100 * @return The plist XML document. 100 * @return The plist XML document.
101 */ 101 */
102static xmlDocPtr new_xml_plist() 102static xmlDocPtr new_xml_plist(void)
103{ 103{
104 char *plist = strdup(plist_base); 104 char *plist = strdup(plist_base);
105 xmlDocPtr plist_xml = xmlParseMemory(plist, strlen(plist)); 105 xmlDocPtr plist_xml = xmlParseMemory(plist, strlen(plist));