diff options
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 | ||
| 41 | plist_data_t plist_new_plist_data() | 41 | plist_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 | ||
| 71 | plist_t plist_new_dict() | 71 | plist_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 | ||
| 78 | plist_t plist_new_array() | 78 | plist_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; |
