diff options
author | Jonathan Beck | 2009-03-27 17:41:10 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-03-27 17:41:10 +0100 |
commit | 623314bb8de2a6ac71e44833d1f1a796274d3871 (patch) | |
tree | b932030862a932aae45a5d1b514d7d2c3b1a3f0b | |
parent | 480fd72fc285fc4f42a7618147cce646ba337ebe (diff) | |
download | libplist-623314bb8de2a6ac71e44833d1f1a796274d3871.tar.gz libplist-623314bb8de2a6ac71e44833d1f1a796274d3871.tar.bz2 |
Use (void) instead of () in functions prototype.
-rw-r--r-- | include/plist/plist.h | 4 | ||||
-rw-r--r-- | src/plist.c | 6 | ||||
-rw-r--r-- | src/plist.h | 2 | ||||
-rw-r--r-- | src/xplist.c | 2 |
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" { * @return the created plist * @sa #plist_type */ - PLIST_API plist_t plist_new_dict(); + PLIST_API plist_t plist_new_dict(void); /** * Create a new root plist_t type #PLIST_ARRAY @@ -102,7 +102,7 @@ extern "C" { * @return the created plist * @sa #plist_type */ - PLIST_API plist_t plist_new_array(); + PLIST_API plist_t plist_new_array(void); /** * 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) return ((GNode *) node)->data; } -plist_data_t plist_new_plist_data() +plist_data_t plist_new_plist_data(void) { plist_data_t data = (plist_data_t) calloc(sizeof(struct plist_data_s), 1); return data; @@ -68,14 +68,14 @@ static void plist_free_node(GNode * node, gpointer none) g_node_children_foreach(node, G_TRAVERSE_ALL, plist_free_node, NULL); } -plist_t plist_new_dict() +plist_t plist_new_dict(void) { plist_data_t data = plist_new_plist_data(); data->type = PLIST_DICT; return plist_new_node(data); } -plist_t plist_new_array() +plist_t plist_new_array(void) { plist_data_t data = plist_new_plist_data(); 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; plist_t plist_new_node(plist_data_t data); plist_data_t plist_get_data(const plist_t node); -plist_data_t plist_new_plist_data(); +plist_data_t plist_new_plist_data(void); gboolean plist_data_compare(gconstpointer a, gconstpointer b); 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 { * * @return The plist XML document. */ -static xmlDocPtr new_xml_plist() +static xmlDocPtr new_xml_plist(void) { char *plist = strdup(plist_base); xmlDocPtr plist_xml = xmlParseMemory(plist, strlen(plist)); |