summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2008-12-29 12:35:51 +0100
committerGravatar Matt Colyer2009-01-02 09:55:08 -0800
commitd77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9 (patch)
tree6ef70292982a499e36d4e14c529436f889e42be1 /src/plist.c
parent0efa3bc3a3519695f288211d720620cc0672f054 (diff)
downloadlibimobiledevice-d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9.tar.gz
libimobiledevice-d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9.tar.bz2
Fix function prototypes
Add missing static, const, change function() to function(void)
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plist.c b/src/plist.c
index c4d6bfa..b9d9e6a 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -40,7 +40,7 @@ const char *plist_base = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
*
* @return The formatted string.
*/
-char *format_string(const char *buf, int cols, int depth)
+static char *format_string(const char *buf, int cols, int depth)
{
int colw = depth + cols + 1;
int len = strlen(buf);
@@ -73,7 +73,7 @@ char *format_string(const char *buf, int cols, int depth)
*
* @return The plist XML document.
*/
-xmlDocPtr new_plist()
+xmlDocPtr new_plist(void)
{
char *plist = strdup(plist_base);
xmlDocPtr plist_xml = xmlReadMemory(plist, strlen(plist), NULL, NULL, 0);