--- src/testing/test_generic_file.cpp.orig 2005-02-22 20:59:50 +0300 +++ src/testing/test_generic_file.cpp 2008-11-04 00:54:43 +0300 @@ -71,7 +71,7 @@ int main(S_I argc, char *argv[]) } fichier f1 = fichier(*ui, argv[1], gf_read_only); - S_I fd = ::open(argv[2], O_WRONLY|O_CREAT|O_TRUNC|O_BINARY); + S_I fd = ::open(argv[2], O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0600); if(fd < 0) { cout << "cannot open "<< argv[2] << endl; --- src/testing/test_libdar.cpp +++ src/testing/test_libdar.cpp @@ -89,7 +89,7 @@ void warning(const string &x, void *context) { - printf("[%d]%s\n", (U_I)context, x.c_str()); + printf("[%d]%s\n", (unsigned long)context, x.c_str()); } bool question(const string & x, void *context) @@ -97,7 +97,7 @@ bool rep = false; char r; - printf("[%d]%s\n", (U_I)context, x.c_str()); + printf("[%d]%s\n", (unsigned long)context, x.c_str()); scanf("%c", &r); rep = r == 'y'; @@ -120,7 +120,7 @@ bool has_children, void *context) { - ui.printf("[[%d]][%S][%S][%S][%S][%S][%S][%S][%s][%s]\n", (U_I)context, &flag, &perm, &uid, &gid, &size, &date, &filename, is_dir ? "dir" : "not_dir", has_children ? "has children" : "no children"); + ui.printf("[[%d]][%S][%S][%S][%S][%S][%S][%S][%s][%s]\n", (long)context, &flag, &perm, &uid, &gid, &size, &date, &filename, is_dir ? "dir" : "not_dir", has_children ? "has children" : "no children"); } void f2()