Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
623314bb
Commit
623314bb
authored
Mar 27, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use (void) instead of () in functions prototype.
parent
480fd72f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
plist.h
include/plist/plist.h
+2
-2
plist.c
src/plist.c
+3
-3
plist.h
src/plist.h
+1
-1
xplist.c
src/xplist.c
+1
-1
No files found.
include/plist/plist.h
View file @
623314bb
...
...
@@ -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
...
...
src/plist.c
View file @
623314bb
...
...
@@ -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
;
...
...
src/plist.h
View file @
623314bb
...
...
@@ -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
);
...
...
src/xplist.c
View file @
623314bb
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment