diff options
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 4 |
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\ | |||
| 40 | * | 40 | * |
| 41 | * @return The formatted string. | 41 | * @return The formatted string. |
| 42 | */ | 42 | */ |
| 43 | char *format_string(const char *buf, int cols, int depth) | 43 | static char *format_string(const char *buf, int cols, int depth) |
| 44 | { | 44 | { |
| 45 | int colw = depth + cols + 1; | 45 | int colw = depth + cols + 1; |
| 46 | int len = strlen(buf); | 46 | int len = strlen(buf); |
| @@ -73,7 +73,7 @@ char *format_string(const char *buf, int cols, int depth) | |||
| 73 | * | 73 | * |
| 74 | * @return The plist XML document. | 74 | * @return The plist XML document. |
| 75 | */ | 75 | */ |
| 76 | xmlDocPtr new_plist() | 76 | xmlDocPtr new_plist(void) |
| 77 | { | 77 | { |
| 78 | char *plist = strdup(plist_base); | 78 | char *plist = strdup(plist_base); |
| 79 | xmlDocPtr plist_xml = xmlReadMemory(plist, strlen(plist), NULL, NULL, 0); | 79 | xmlDocPtr plist_xml = xmlReadMemory(plist, strlen(plist), NULL, NULL, 0); |
