Silence format warning on printing time_t

This commit is contained in:
Tim Rühsen 2018-12-31 16:51:48 +01:00
parent b38320fd42
commit ad895e382a
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ static void test_psl(void)
}
}
printf("psl_builtin_file_time()=%ld\n", psl_builtin_file_time());
printf("psl_builtin_file_time()=%ld\n", (long) psl_builtin_file_time());
psl_builtin_file_time() == 0 ? failed++ : ok++;
printf("psl_builtin_sha1sum()=%s\n", psl_builtin_sha1sum());

View File

@ -290,7 +290,7 @@ int main(int argc, const char *const *argv)
printf("builtin exceptions: %d\n", psl_suffix_exception_count(psl));
printf("builtin wildcards: %d\n", psl_suffix_wildcard_count(psl));
printf("builtin filename: %s\n", psl_builtin_filename());
printf("builtin file time: %ld (%s)\n", psl_builtin_file_time(), time2str(psl_builtin_file_time()));
printf("builtin file time: %ld (%s)\n", (long) psl_builtin_file_time(), time2str(psl_builtin_file_time()));
printf("builtin SHA1 file hash: %s\n", psl_builtin_sha1sum());
printf("builtin outdated: %d\n", psl_builtin_outdated());
} else