From babec330acced3915332fa9a09b8252cfa99cf34 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Thu, 21 Jan 2010 21:19:41 +0100 Subject: Fix some warnings --- test/plist_cmp.c | 7 +------ test/plist_test.c | 7 +++---- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/plist_cmp.c b/test/plist_cmp.c index dcf961f..af54c4c 100644 --- a/test/plist_cmp.c +++ b/test/plist_cmp.c @@ -43,12 +43,7 @@ static plist_t plist_get_next_sibling(plist_t node) return (plist_t) g_node_next_sibling((GNode *) node); } -static plist_t plist_get_prev_sibling(plist_t node) -{ - return (plist_t) g_node_prev_sibling((GNode *) node); -} - -char compare_plist(plist_t node_l, plist_t node_r) +static char compare_plist(plist_t node_l, plist_t node_r) { plist_t cur_l = NULL; plist_t cur_r = NULL; diff --git a/test/plist_test.c b/test/plist_test.c index a0344e9..17be11a 100644 --- a/test/plist_test.c +++ b/test/plist_test.c @@ -35,15 +35,14 @@ int main(int argc, char *argv[]) { FILE *iplist = NULL; - FILE *oplist = NULL; plist_t root_node1 = NULL; plist_t root_node2 = NULL; char *plist_xml = NULL; char *plist_xml2 = NULL; char *plist_bin = NULL; int size_in = 0; - int size_out = 0; - int size_out2 = 0; + uint32_t size_out = 0; + uint32_t size_out2 = 0; char *file_in = NULL; struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); if (argc!= 2) @@ -123,7 +122,7 @@ int main(int argc, char *argv[]) free(plist_xml2); free(filestats); - if (size_in != size_out2) + if ((uint32_t)size_in != size_out2) { printf("Size of input and output is different\n"); printf("Input size : %i\n", size_in); -- cgit v1.1-32-gdbae