--- report.c.orig 2010-04-03 19:23:47.000000000 +0200 +++ report.c 2010-04-03 19:40:28.000000000 +0200 @@ -741,7 +741,7 @@ static void copy_static_code(u8* out_dir) { struct dirent** d; ca_out_dir = out_dir; - scandir(ASSETS_DIR, &d, copy_asset, NULL); + scandir(ASSETS_DIR, &d, (int(*)())copy_asset, NULL); }