diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/plist_cmp.c | 4 | ||||
| -rw-r--r-- | test/plist_test.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/plist_cmp.c b/test/plist_cmp.c index 1a66119..386264a 100644 --- a/test/plist_cmp.c +++ b/test/plist_cmp.c | |||
| @@ -27,6 +27,10 @@ | |||
| 27 | #include <string.h> | 27 | #include <string.h> |
| 28 | #include <sys/stat.h> | 28 | #include <sys/stat.h> |
| 29 | 29 | ||
| 30 | #ifdef _MSC_VER | ||
| 31 | #pragma warning(disable:4996) | ||
| 32 | #endif | ||
| 33 | |||
| 30 | char compare_plist(plist_t node_l, plist_t node_r) | 34 | char compare_plist(plist_t node_l, plist_t node_r) |
| 31 | { | 35 | { |
| 32 | plist_t cur_l = NULL; | 36 | plist_t cur_l = NULL; |
diff --git a/test/plist_test.c b/test/plist_test.c index a4dd714..069701e 100644 --- a/test/plist_test.c +++ b/test/plist_test.c | |||
| @@ -27,6 +27,11 @@ | |||
| 27 | #include <string.h> | 27 | #include <string.h> |
| 28 | #include <sys/stat.h> | 28 | #include <sys/stat.h> |
| 29 | 29 | ||
| 30 | #ifdef _MSC_VER | ||
| 31 | #pragma warning(disable:4996) | ||
| 32 | #endif | ||
| 33 | |||
| 34 | |||
| 30 | int main(int argc, char *argv[]) | 35 | int main(int argc, char *argv[]) |
| 31 | { | 36 | { |
| 32 | FILE *iplist = NULL; | 37 | FILE *iplist = NULL; |
| @@ -40,7 +45,6 @@ int main(int argc, char *argv[]) | |||
| 40 | int size_out = 0; | 45 | int size_out = 0; |
| 41 | int size_out2 = 0; | 46 | int size_out2 = 0; |
| 42 | char *file_in = NULL; | 47 | char *file_in = NULL; |
| 43 | char *file_out[512]; | ||
| 44 | struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); | 48 | struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); |
| 45 | if (argc!= 2) { | 49 | if (argc!= 2) { |
| 46 | printf("Wrong input\n"); | 50 | printf("Wrong input\n"); |
