diff options
author | Jonathan Beck | 2010-01-21 21:19:41 +0100 |
---|---|---|
committer | Jonathan Beck | 2010-01-21 21:19:41 +0100 |
commit | babec330acced3915332fa9a09b8252cfa99cf34 (patch) | |
tree | e5fdbcde4e3296b55f441012ec8f66b74ef286d1 /test/plist_test.c | |
parent | 874942ec1600773622238ae28544908d292ef339 (diff) | |
download | libplist-babec330acced3915332fa9a09b8252cfa99cf34.tar.gz libplist-babec330acced3915332fa9a09b8252cfa99cf34.tar.bz2 |
Fix some warnings
Diffstat (limited to 'test/plist_test.c')
-rw-r--r-- | test/plist_test.c | 7 |
1 files changed, 3 insertions, 4 deletions
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); |