diff options
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 @@ | |||
| 35 | int main(int argc, char *argv[]) | 35 | int main(int argc, char *argv[]) |
| 36 | { | 36 | { |
| 37 | FILE *iplist = NULL; | 37 | FILE *iplist = NULL; |
| 38 | FILE *oplist = NULL; | ||
| 39 | plist_t root_node1 = NULL; | 38 | plist_t root_node1 = NULL; |
| 40 | plist_t root_node2 = NULL; | 39 | plist_t root_node2 = NULL; |
| 41 | char *plist_xml = NULL; | 40 | char *plist_xml = NULL; |
| 42 | char *plist_xml2 = NULL; | 41 | char *plist_xml2 = NULL; |
| 43 | char *plist_bin = NULL; | 42 | char *plist_bin = NULL; |
| 44 | int size_in = 0; | 43 | int size_in = 0; |
| 45 | int size_out = 0; | 44 | uint32_t size_out = 0; |
| 46 | int size_out2 = 0; | 45 | uint32_t size_out2 = 0; |
| 47 | char *file_in = NULL; | 46 | char *file_in = NULL; |
| 48 | struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); | 47 | struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); |
| 49 | if (argc!= 2) | 48 | if (argc!= 2) |
| @@ -123,7 +122,7 @@ int main(int argc, char *argv[]) | |||
| 123 | free(plist_xml2); | 122 | free(plist_xml2); |
| 124 | free(filestats); | 123 | free(filestats); |
| 125 | 124 | ||
| 126 | if (size_in != size_out2) | 125 | if ((uint32_t)size_in != size_out2) |
| 127 | { | 126 | { |
| 128 | printf("Size of input and output is different\n"); | 127 | printf("Size of input and output is different\n"); |
| 129 | printf("Input size : %i\n", size_in); | 128 | printf("Input size : %i\n", size_in); |
