Make sure function signatures match their declarations in the public header
diff --git a/src/jplist.c b/src/jplist.c
index ca4743c..f6c96ca 100644
--- a/src/jplist.c
+++ b/src/jplist.c
@@ -398,12 +398,12 @@
     return PLIST_ERR_SUCCESS;
 }
 
-int plist_to_json(plist_t plist, char **json, uint32_t* length, int prettify)
+plist_err_t plist_to_json(plist_t plist, char **plist_json, uint32_t* length, int prettify)
 {
     uint64_t size = 0;
     int res;
 
-    if (!plist || !json || !length) {
+    if (!plist || !plist_json || !length) {
         return PLIST_ERR_INVALID_ARG;
     }
 
@@ -426,7 +426,7 @@
     res = node_to_json(plist, &outbuf, 0, prettify);
     if (res < 0) {
         str_buf_free(outbuf);
-        *json = NULL;
+        *plist_json = NULL;
         *length = 0;
         return res;
     }
@@ -436,7 +436,7 @@
 
     str_buf_append(outbuf, "\0", 1);
 
-    *json = outbuf->data;
+    *plist_json = outbuf->data;
     *length = outbuf->len - 1;
 
     outbuf->data = NULL;
@@ -782,7 +782,7 @@
     return obj;
 }
 
-int plist_from_json(const char *json, uint32_t length, plist_t * plist)
+plist_err_t plist_from_json(const char *json, uint32_t length, plist_t * plist)
 {
     if (!plist) {
         return PLIST_ERR_INVALID_ARG;
diff --git a/src/oplist.c b/src/oplist.c
index b2395a4..7597b3c 100644
--- a/src/oplist.c
+++ b/src/oplist.c
@@ -442,7 +442,7 @@
     return PLIST_ERR_SUCCESS;
 }
 
-int plist_to_openstep(plist_t plist, char **openstep, uint32_t* length, int prettify)
+plist_err_t plist_to_openstep(plist_t plist, char **openstep, uint32_t* length, int prettify)
 {
     uint64_t size = 0;
     int res;
@@ -895,7 +895,7 @@
     return PLIST_ERR_SUCCESS;
 }
 
-int plist_from_openstep(const char *plist_ostep, uint32_t length, plist_t * plist)
+plist_err_t plist_from_openstep(const char *plist_ostep, uint32_t length, plist_t * plist)
 {
     if (!plist) {
         return PLIST_ERR_INVALID_ARG;